Timer

Provides basic timer functionality. Designed to be used with TimerManager.

Members

Functions

initialize
void initialize(double _firstTime, double _currentTime, double _delay, TimerHandler _handler, TimerTickType _tickType)

Used for initializing timer.

tick
void tick(double currentTime)

The whole delta time will be provided if currentTime > nextTime even when dt % thisDelay > 1. Timer will automaticaly decide to process only one period, or all. It can also process only the last update if needed. This method will be called only when currentTime > nextTime.

Variables

delay
double delay;
Undocumented in source.
handler
TimerHandler handler;
Undocumented in source.
lastUpdateTime
double lastUpdateTime;
Undocumented in source.
nextUpdateTime
double nextUpdateTime;
Undocumented in source.
tickType
TimerTickType tickType;
Undocumented in source.

Meta