Stopping a timerΒΆ

StopTimer()

Stop a timer


SYNTAX

StopTimer(event_function)

Stops the specified timer. The timer can be restarted later by means of the StartTimer() function.

event_function

The event function of the timer to be stopped. The function name was assigned by CreateTimer() when the timer was created.

The function returns 0 if successful, or a negative value if it fails.


EXAMPLE

CreateTimer(evTimer, 1000, TIMER_START}
StartTimer(evTimer, 1500)
...

StopTimer(evTimer}

RELATED TOPICS

CreateTimer()

DestroyTimer()

StartTimer()