The timeval
structure has tv_sec
, which gives you the absolute value for the seconds, and tv_usec
, which gives you the remaining fraction in micro seconds.
So, you could get the resolution in micro seconds.
For more information, http://www.gnu.org/software/libc/manual/html_node/Elapsed-Time.html