#include <Timer.h>
Public Member Functions | |
Timer () | |
bool | Enabled () const |
Check if timer is enabled. | |
void | Disable () |
Disable timer: there's no way to enable it other than using SetInterval(). | |
void | SetInterval (uint16 interval) |
uint | Tick (uint16 delta) |
void | Reset () |
Timer::Timer | ( | ) | [inline] |
Initialize the timer so that it ticks with specified period. If interval is 0, timer is disabled.
void Timer::Reset | ( | ) | [inline] |
Reset the timer so that next event will happen after Interval ticks.
void Timer::SetInterval | ( | uint16 | interval | ) | [inline] |
Change timer interval
uint Timer::Tick | ( | uint16 | delta | ) | [inline] |
Tell the timer that a certain interval of time has passed.