41 GTimer(
double milliseconds);
GTimer(double milliseconds)
Creates a timer object that generates a GTimerEvent each time the specified number of milliseconds ha...
Definition: gtimer.cpp:28
This class implements a simple interval timer that generates a GTimerEvent with a specified frequency...
Definition: gtimer.h:28
void start()
Starts the timer.
Definition: gtimer.cpp:59
bool isStarted() const
Method: isStarted Usage: if (timer.isStarted()) { ...
Definition: gtimer.cpp:42
double getDelay() const
Returns the delay in milliseconds between each tick of this timer.
Definition: gtimer.cpp:38
void setDelay(double ms)
Changes the delay in milliseconds between each tick of this timer.
Definition: gtimer.cpp:51
void restart()
Stops the timer (if it was started) and then starts it again.
Definition: gtimer.cpp:46
void stop()
Stops the timer so that it stops generating events until it is restarted.
Definition: gtimer.cpp:70
~GTimer()
Destroys the timer, stopping it if it's currently running.
Definition: gtimer.cpp:34