30 class TimerPrivateData
50 QueryPerformanceFrequency(&
d->mPerformanceFrequency);
51 if (
d->mPerformanceFrequency.QuadPart) {
52 d->mPerformanceQuerySupported =
true;
63 if (
d->mPerformanceQuerySupported) {
64 QueryPerformanceCounter(&
d->mPerformanceStart);
67 d->mStart = GetTickCount();
73 if (
d->mPerformanceQuerySupported) {
75 LARGE_INTEGER difference;
76 QueryPerformanceCounter(&stop);
77 difference.QuadPart = stop.QuadPart -
d->mPerformanceStart.QuadPart;
78 return double(difference.QuadPart) /
d->mPerformanceFrequency.QuadPart;
81 return (GetTickCount() -
d->mStart) / 1000.0;
LARGE_INTEGER mPerformanceStart
bool mPerformanceQuerySupported
LARGE_INTEGER mPerformanceFrequency