32 #define WIN32_LEAN_AND_MEAN 1 39 GetSystemTimeAsFileTime( &now );
40 unsigned long long t = (UINT64(now.dwHighDateTime) << 32) + now.dwLowDateTime;
46 #elif defined(HAVE_CLOCK_GETTIME) 54 clock_gettime( CLOCK_MONOTONIC, &now );
56 unsigned usecs = ((unsigned)now.tv_nsec)/1000 + ((unsigned)now.tv_sec) * 1000000;
63 #elif defined(HAVE_GETTIMEOFDAY_FUNC) 70 gettimeofday( &tv, 0 );
72 return (tv.tv_sec * 1000000) + tv.tv_usec;
unsigned GetRunningMicroSecs()
An alternate way to calculate an elapsed time (in microsecondes) to class PROF_COUNTER.