bool IsTimerExpired(int timer_id)
Checks whether the timer TIMER_ID has expired.
If the timeout set with SetTimer has elapsed, returns true.
Otherwise, returns false.
Note that this function will only return true once - after that, the timer
is placed into an OFF state where it will always return false until restarted.
Example:
if (IsTimerExpired(1)) {
Display("Timer 1 expired");
}
will display a message when timer 1 expires.
See Also: SetTimer
|