Time Library Organisation
Keean Schupke
k.schupke at imperial.ac.uk
Thu Jan 27 12:22:11 EST 2005
Simon Marlow wrote:
>
>
>You can't assume that time_t is not being adjusted for leap seconds: the
>host might be running NTP, for example. The best thing to do seems to
>be to assume that time_t is a count of seconds since the epoch minus
>leap seconds, and calculate TAI from that. It might be wrong by up to a
>second around a leap second on a host running NTP, and slightly more
>wrong on a host not running NTP, but the latter probably don't care too
>much about second-accuracy anyway.
>
>
>
Why not directly use a system timer... When the library initialises we
get the
time, and then allocate a dedicated system timer, which we use to count
time intervals...
Keean.
More information about the Libraries
mailing list