Simulator::cGonzagoTimer class

A class for measuring time inside Simulator modes.

This is the equivalent to the Clock class but in the Simulator.

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

auto Stop() -> void
auto SetTime(LARGE_INTEGER time) -> void
auto UpdateTime() -> void
auto Start() -> void
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