54 return g_lastTimeTimerStarted;
57 return g_lastTimeCalculated - m_startTime;
69 static MxLong g_lastTimeCalculated;
70 static MxLong g_lastTimeTimerStarted;
[AI] Base virtual class for all Mindscape engine (Mx) objects.
Timer class for measuring elapsed time or frame time.
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 GetTime()
Returns the current timer value in ms, depending on running state.
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.