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