Skip to main content

Module time

Module time 

Source
Expand description

Time + duration helpers.

(now) → integer — unix seconds (now-ms) → integer — unix milliseconds (now-ns) → integer — unix nanoseconds (monotonic) (now-rfc3339) → string — current time formatted RFC 3339 UTC (sleep SECONDS) → nil — blocks the script (sleep-ms MILLIS) → nil (elapsed-since START-NS) → integer — ns since START-NS (from (now-ns))

Functions§

install