(Official) LUA Scripting Documentation
Pages
Functions to manipulate timer
timer_reset*
Reset the internal script timer to zero.
timer_start*
Start the internal script timer.
timer_stop*
Stop (pause) the internal script timer.
get_timer*
Read the current elapsed time in milliseconds from the internal script timer.