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.

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.

Return value

This function returns no value.

Example

-- Suspend the program for 5 seconds sys.sleep(5000)