Module lsh.time
Time and clock functions.
Functions
| sleep (secs) | Suspends execution of the calling thread for the given number of seconds. |
Functions
- sleep (secs)
-
Suspends execution of the calling thread for the given
number of seconds.
Parameters:
- secs number seconds to sleep
Returns:
-
bool
trueOr
- nil
- string error
Usage:
local sh = require 'lsh' sh.sleep(1)