Destroying a timerΒΆ

DestroyTimer()

Destroy a timer


SYNTAX

DestroyTimer(event_function)

Stops the specified timer if it is running, and then destroys it, releasing the system resources that have been allocated to it.

event_function

The event function of the timer to be destroyed. 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}
...

DestroyTimer(evTimer}

RELATED TOPICS

CreateTimer()

StartTimer()

StopTimer()