29 QueryPerformanceFrequency(&frequency_);
39 #if defined(_WIN32_WINNT) && (_WIN32_WINNT >= _WIN32_WINNT_WIN8) 41 GetSystemTimePreciseAsFileTime(&ft);
42 __int64* val = (__int64*)&ft;
43 return static_cast<double>(*val) / 10000000.0 - 11644473600.0;
45 LARGE_INTEGER count, freq;
46 QueryPerformanceFrequency(&freq);
47 QueryPerformanceCounter(&count);
48 return double(count.QuadPart) / freq.QuadPart;
65 QueryPerformanceCounter(&now);
68 double UTimer::getInterval()
83 gettimeofday(&tv,
NULL);
84 return double(tv.tv_sec) + double(tv.tv_usec) / 1000000.0;
102 double UTimer::getInterval()
struct timeval stopTimeRecorded_
struct timeval startTimeRecorded_
ULogger class and convenient macros.