[ntp:questions] Re: Best way to harness multiple stratum 1 servers

Garrett Wollman wollman at csail.mit.edu
Thu Apr 6 19:23:29 UTC 2006


In article <Epadna-QbY3q_6jZRVn-jw at comcast.com>,
Richard B. Gilbert <rgilbert88 at comcast.net> 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
wollman at csail.mit.edu | 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)




More information about the questions mailing list