Simulator::cGonzagoTimer class

A class for measuring time inside Simulator modes. This is the equivalent to the Clock class.

Base classes

class DefaultRefCounted
The default implementation of a reference counted class.

Public types

using TimeFunction_t = LARGE_INTEGER(*)()

Constructors, destructors, conversion operators

cGonzagoTimer(TimeFunction_t pTimeFunction)
cGonzagoTimer()
~cGonzagoTimer() virtual

Public functions

void Stop()
void SetTime(LARGE_INTEGER time)
void UpdateTime()
void Start()
auto IsRunning() -> bool
Tells whether the timer is currently running and, therefore, measuring time.
auto GetElapsed() -> LARGE_INTEGER
Returns the elapsed time, in milliseconds.

Protected variables

LARGE_INTEGER mElapsedTime
LARGE_INTEGER field_10
bool mbRunning
TimeFunction_t mpTimeFunction