timer.set_timer

int = set_timer(Elapse, TimerFunc )

Creates a timer that executes a callback function

Parameters

Elapse : int

Timer period, in milliseconds

TimerFunc : function

Callback function. Will be called with with 2 int args: (timer_id, time)

Comments

Uses the SetTimer function.

Return Value

Returns the id of the timer, which can be passed to kill_timer to stop it.