Re: GLIBC IA64 HP_TIMING fixes for SMP systems with unsynchronized

Christoph Lameter
2004-06-04T14:29:08Z

On Thu, 3 Jun 2004, Ulrich Drepper wrote:

> David Mosberger wrote:
>
> > Does anyone else find it annoying that gettimeofday() only provides
> > micro-second resolution? We can do syscalls significantly faster than
> > that (especially with a light-weight syscall handler). Time for a
> > kernel extension?
>
> What do you think clock_gettime(CLOCK_REALTIME) is for?

clock_gettime(CLOCK_REALTIME) calls gettimeofday internally and then
multiplies with 1000. I have a patch that supports CLOCK_REALTIME_HR and
CLOCK_MONOTONIC_HR to access the full resolution of the clocks.