GG
|
#include <Timer.h>
Public Attributes | |
FiredSignalType | FiredSignal |
Signal Types | |
typedef boost::signal< void(unsigned int, Timer *)> | FiredSignalType |
Structors | |
Timer (unsigned int interval, unsigned int start_time=0) | |
~Timer () |
Accessors | |
unsigned int | Interval () const |
bool | Running () const |
Mutators | |
void | Reset (unsigned int start_time=0) |
void | SetInterval (unsigned int interval) |
void | Connect (Wnd *wnd) |
void | Disconnect (Wnd *wnd) |
void | Start () |
void | Stop () |
void | Update (unsigned int ticks) |
Timer provides a means for one or more Wnds to receive periodic notifications of the passage of time.
The rate at which the Timer fires is not realtime. That is, there are no guarantees on the interval between firings other than that a minimum of Interval() ms will have elapsed.
|
explicit |
Basic ctor. Takes an interval and a start time in ms; if the start time is ommitted, the start time will be immediate.