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

Jakub Jelinek
2005-12-06T11:37:20Z

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