class
#include <Spore/Simulator/cGonzagoTimer.h>
cGonzagoTimer A class for measuring time inside Simulator modes.
Contents
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
- 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