title: “EXCEPTION::SLEEP Manual Page” author: “laplante@plcb.ca” date: “2023”
exception::sleep — sleep for a specified duration
This function is used to pause execution for the given duration.
The string parameter is a duration.
A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms"
, "-1.5h"
or "2h45m"
.
Valid time units are: "ns"
, "us"
(or "µs"
), "ms"
, "s"
, "m"
, "h"
, "d"
, "w"
, "y"
.
res={{
sleep("1s");
}}.
return
res=.