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 true

Or

  1. nil
  2. string error

Usage:

    local sh = require 'lsh'
    
    sh.sleep(1)
generated by LDoc 1.5.0 Last updated 2026-10-02 09:04:27 UTC (f69ca05)