TimerManager

Undocumented in source.

Constructors

this
this(double delegate() currentTimeCallback)
Undocumented in source.

Members

Functions

addTimer
Timer addTimer(double _delay, TimerHandler _handler, double _initialDelay, TimerTickType _tickType)

initialDelay can be used to specify first delay to be different from following, that are set with delay parameter. Must be not NaN and > 0 to be used as first delay.

addToQueue
void addToQueue(Timer timer)

timer must be previously removed from freeTimers.

popFreeTimer
Timer popFreeTimer()
Undocumented in source. Be warned that the author may not have intended to support it.
resetTimer
void resetTimer(Timer timer, double newDelay)

Resets timer's delay to newDelay if > 0 or to timer.delay otherwise.

sortTimers
void sortTimers()
Undocumented in source. Be warned that the author may not have intended to support it.
stopTimer
void stopTimer(Timer timer)
Undocumented in source. Be warned that the author may not have intended to support it.
updateTimers
void updateTimers(double currentTime)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

currentTime
double delegate() currentTime;
Undocumented in source.
freeTimers
Timer[] freeTimers;
Undocumented in source.
queue
Timer[] queue;
Undocumented in source.

Meta