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

From: Jakub Jelinek
Date: Tue Dec 06 2005 - 06:36:43 EST


On Tue, Dec 06, 2005 at 12:23:23PM +0100, David Engraf wrote:
> > (and.. wait.. isn't that called gettimeofday() )
> Not really gettimeofday is based on the date and time, but what if the user
> changes the date, the counter would also change.

If you want a monotonic clock, just use clock_gettime (CLOCK_MONOTONIC, &ts);

Jakub
-
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/