SimpleCxxLib
packageclass GTimer
GTimerEvent
with a specified frequency. Copying
a GTimer
object is legal and creates an object that
refers to the same internal timer.
Constructor | |
Creates a timer object that generates a GTimerEvent each time the specified number of milliseconds has elapsed. | |
Methods | |
Starts the timer. | |
Stops the timer so that it stops generating events until it is restarted. |
GTimer(double milliseconds);
GTimerEvent
each time the specified number of milliseconds has elapsed. No
events are generated until the client calls start
on the timer. For more details on using timers, see the documentation
for the GTimerEvent
class.
Usage:
GTimer timer(milliseconds);
void start();
stop
method inside the event
handler.
Usage:
timer.start();
void stop();
Usage:
timer.stop();