Re: [PATCH] Win32 equivalent to GetTickCount systemcall (i386)

Eric Dumazet
2005-12-06T18:00:46Z

Andi Kleen a écrit :
> "David Engraf" <engraf.david@netcom-sicherheitstechnik.de> writes:
>
>>times has only 10ms resolution, we need at least 1ms.
>
>
> It actually has jiffies resultion. Your measurements must have been
> quite off.

I beg to differ: times has a 10 ms resolution ( ie 1/USER_HZ)

times() is supposed to return clock_t expressed in USER_HZ, wich is still 100,
regardless of the kernel HZ

I just checked sources and sys_times() do use jiffies_64_to_clock_t()

Eric