25 #ifndef __I6ENGINE_CORE_TIMER_H__
26 #define __I6ENGINE_CORE_TIMER_H__
30 #include <condition_variable>
36 class EngineCoreController;
66 inline void start() { _bolTimerStopped =
false; }
71 inline void pause() { _bolTimerStopped =
true; }
101 bool _bolTimerStopped;
102 std::condition_variable _condVariable;
void update()
This method executes the given update function ptrFun() and lets the thread wait at a conditional var...
bool setLastUpdate()
registered as job in Scheduler to be called when time is over
void pause()
Pause the timer so an update will do nothing.
this class is used as an abstraction layer
~Timer()
destructor removes timer
void start()
Start the timer so an update can be performed later. If the timer has not been started, the update method will do nothing.
This class provides gametime-synchronized Timers. They are controlled by the Scheduler.