34 QueryPerformanceFrequency(&l);
38 invFreq = 1.0f / l.QuadPart;
50 QueryPerformanceCounter(&l);
52 resetStamp = (((double)l.QuadPart) * invFreq);
59 QueryPerformanceCounter(&l);
61 return (
float)(((double)l.QuadPart) * invFreq - resetStamp);
73 , lastIntervalTime(0.0
f)
103 return seconds + milliseconds;
Timer()
Default Constructor.
float getTime()
Returns the time passed since object creation or since reset() was last called.
void reset()
Resets the timer to 0.0f.