In article <[EMAIL PROTECTED]>,
Richard B. Gilbert <[EMAIL PROTECTED]> wrote:
>The precision shows as "-21" or about 1 microsecond and, indeed, the 
>smallest difference between two consecutive calls to gettimeofday() is 
>one microsecond.

gettimeofday(), by definition, returns microseconds.

If you want nanoseconds, you need clock_gettime().  No new code should
be using gettimeofday().

-GAWollman

-- 
Garrett A. Wollman    | As the Constitution endures, persons in every
[EMAIL PROTECTED] | generation can invoke its principles in their own
Opinions not those    | search for greater freedom.
of MIT or CSAIL.      | - A. Kennedy, Lawrence v. Texas, 539 U.S. 558 (2003)

_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to