Re: Timers and timing, was: MySQL Performance 6.0rc1

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Sat, 29 Oct 2005 09:59:52 -0600 (MDT)
In message: <20051029084716.GY39882_at_cirb503493.alcatel.com.au>
            Peter Jeremy <PeterJeremy_at_optushome.com.au> writes:
: Most applications will do all their timekeeping using a single set of
: clock calls so I don't think this is especially serious.  Does POSIX
: require any guarantees about (eg) clock_gettime(CLOCK_REALTIME), time()
: and gettimeofday() returning identical values?  Can we claim "rounding
: and truncation" to explain the discrepancies?

I'm not sure that most of them do.  I've seen all three used in the
libraries we have at work, for example.  It would be nice if the
inaccuracies were well documented...

Warner
Received on Sat Oct 29 2005 - 14:00:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:46 UTC