31#define WIN32_LEAN_AND_MEAN 1
38 GetSystemTimeAsFileTime( &now );
39 uint64_t t = (
UINT64( now.dwHighDateTime ) << 32 ) + now.dwLowDateTime;
45#elif defined( HAVE_CLOCK_GETTIME )
53 clock_gettime( CLOCK_MONOTONIC, &now );
55 int64_t usecs = (int64_t) now.tv_sec * 1000000 + now.tv_nsec / 1000;
62#elif defined( HAVE_GETTIMEOFDAY_FUNC )
69 gettimeofday( &tv, 0 );
71 return (int64_t) tv.tv_sec * 1000000 + tv.tv_usec;
int64_t GetRunningMicroSecs()
An alternate way to calculate an elapsed time (in microsecondes) to class PROF_COUNTER.