Subject: Re: mono_time exported? (how to make timer work correctly across settimeofday() call?)
To: Simon Burge <simonb@wasabisystems.com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 01/25/2002 19:37:49
On Sat, Jan 26, 2002 at 02:29:32PM +1100, Simon Burge wrote:
> I'd suggest either adding a gethrtime() syscall (ala solaris and
> possibly other SVR4-type OS's), or (probably better) adding a
> CLOCK_MONOTIME or CLOCK_MONOTONIC for clock_{getres,gettime,settime}(2)
> to use. If we do the latter, we can easily do gethrtime() as a libc
> function that calls clock_gettime() with the right arguments.
...but make sure clock_settime() doesn't actually do anything in the
MONOTIME case :-)
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>