Vizard 7 » Command Index » Vizard modules » viz » <viz>.killtimer
7.5

<viz>.killtimer

This command will stop the timer with the given ID

<viz>.killtimer(  
timerID # timer ID
)  
timerID
The ID of the timer to kill.

Remarks

This will stop all timers with the given ID. This is useful when you need to stop a perpetual timer or a timer that has not yet expired.

Return Value

None

Example

# Start a 10 Hz perpetual timer with ID equal to 42
viz.starttimer(42, 0.1, viz.FOREVER)
# Kill timer ID 42
viz.killtimer(42)

See also

<viz>.callback
<viz>.starttimer
<viz>.elapsed
<viz>.play
<viz>.pause