SyntaxFix
Write A Post
Hire A Developer
Questions
There is no portable way to get resolution of less than a second in standard C So best you can do is, use the POSIX function gettimeofday().