1 #include "..\include\raMain.h" 7 QueryPerformanceFrequency( (LARGE_INTEGER *)&m_ticksPerSecond );
9 m_currentTime = m_lastTime = 0;
11 m_timerStopped =
true;
16 QueryPerformanceFrequency( (LARGE_INTEGER *)&m_ticksPerSecond );
18 m_currentTime = m_lastTime = 0;
20 m_timerStopped =
true;
31 QueryPerformanceCounter( (LARGE_INTEGER *)&m_lastTime );
32 m_timerStopped =
false;
39 QueryPerformanceCounter( (LARGE_INTEGER *)&stopTime );
40 m_runningTime += (float)(stopTime - m_lastTime) / (float)m_ticksPerSecond;
41 m_timerStopped =
true;
47 QueryPerformanceCounter( (LARGE_INTEGER *)&m_currentTime );
49 m_timeElapsed = (float)(m_currentTime - m_lastTime) / (float)m_ticksPerSecond;
50 m_runningTime += m_timeElapsed;
52 m_lastTime = m_currentTime;