RosettaCodeData/Task/Sleep/Sidef/sleep.sidef

7 lines
246 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
var sec = read(Number); # any positive number (it may be fractional)
say "Sleeping...";
Sys.sleep(sec); # in seconds
#Sys.usleep(sec); # in microseconds
#Sys.nanosleep(sec); # in nanoseconds
say "Awake!";