gtimer.h| Type | |
| This type implements a simple interval timer that generates a timer event with a specified frequency. | |
| Functions | |
| Creates a timer that generates a timer event each time the specified number of milliseconds has elapsed. | |
| Frees the resources associated with the timer. | |
| Starts the timer. | |
| Stops the timer so that it stops generating events. | |
typedef struct GTimerCDT *GTimer;
GTimer newGTimer(double milliseconds);
startTimer.
Usage:
timer = newGTimer(milliseconds);
void freeGTimer(GTimer timer);
Usage:
freeGTimer(timer);
void startTimer(GTimer timer);
stop function inside the event
handler.
Usage:
startTimer(timer);
void stopTimer(GTimer timer);
Usage:
stopTimer(timer);