int = set_timer(Elapse, TimerFunc
)
Creates a timer that executes a callback function
Parameters
Elapse : int
Timer period, in millisecondsTimerFunc : 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.