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

From: Eric Dumazet
Date: Tue Dec 06 2005 - 13:00:04 EST


Andi Kleen a écrit :
"David Engraf" <engraf.david@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/