#include <timer.hpp>
Public Member Functions | |
| void | Tick () |
| Check all contained TimeEvent objects and call any which are ready. | |
| void | Register (TimeEvent *) |
| Register a TimeEvent object with the Timer object. | |
| void | Unregister (TimeEvent *) |
| Unregister a TimeEvent object with the Timer object. | |
| ~Timer () | |
| Delete any remaining autofree TimeEvent objects. | |
Static Public Member Functions | |
| static double | GetTime () |
| Helper function to get the current time in seconds This is not guaranteed to start at any particular number, or be a UNIX timestamp. | |
Static Public Attributes | |
| static const int | FOREVER = -1 |
| TimeEvent lifetime that will never expire. | |
Protected Attributes | |
| std::list< TimeEvent * > | timers |
| List of TimeEvent objects a Timer controls. | |
| Timer::~Timer | ( | ) |
Delete any remaining autofree TimeEvent objects.
| double Timer::GetTime | ( | ) | [static] |
Helper function to get the current time in seconds This is not guaranteed to start at any particular number, or be a UNIX timestamp.
| void Timer::Tick | ( | ) |
Check all contained TimeEvent objects and call any which are ready.
std::list<TimeEvent *> Timer::timers [protected] |
const int Timer::FOREVER = -1 [static] |
TimeEvent lifetime that will never expire.
1.5.7.1