Please note that the use of the sleep function may alter user experience in luart desktop applications beacause ui events are not fired until the delay elapses.
sys.sleep([delay])
Suspend the program execution until the delay elapse.
Parameters
delay
The delay for which program execution will be suspended, in milliseconds. Delay is optional, with a default 1 millisecond program suspension.
Return value
This function returns no value.Example
-- Suspend the program for 5 seconds
sleep(5000)