33 QueryPerformanceFrequency(&l);
34 invFreq = 1.0f / l.QuadPart;
41 QueryPerformanceCounter(&l);
42 resetStamp = (((double)l.QuadPart) * invFreq);
48 QueryPerformanceCounter(&l);
49 return (
float)(((double)l.QuadPart) * invFreq - resetStamp);
80 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.