7MxLong MxTimer::g_lastTimeCalculated = 0;
10MxLong MxTimer::g_lastTimeTimerStarted = 0;
17 m_startTime = timeGetTime();
25 MxTimer::g_lastTimeCalculated = timeGetTime();
26 return MxTimer::g_lastTimeCalculated - m_startTime;
40 MxLong startTime = elapsed - MxTimer::g_lastTimeTimerStarted;
43 m_startTime = m_startTime + startTime - 5;
void InitLastTimeCalculated()
Initializes the static 'last time calculated' field to the timer's start time.
MxTimer()
Constructs and initializes the timer to the current tick count, and resets static globals.
MxLong GetRealTime()
Retrieves the elapsed real time (in ms) since timer construction or last reset.
void Start()
Starts the timer and records the real time when started.
void Stop()
Stops the timer, updating internal counters to reflect elapsed time until now.