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);
83 gettimeofday(&tv,
NULL);
84 return double(tv.tv_sec) + double(tv.tv_usec) / 1000000.0;