var sec = read(Number) # any positive number (it may be fractional) say "Sleeping for #{sec} sec..." Sys.sleep(sec) # in seconds #Sys.usleep(sec) # in microseconds #Sys.nanosleep(sec) # in nanoseconds say "Awake!"
Last updated 1 year ago