Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 455 Bytes

File metadata and controls

19 lines (10 loc) · 455 Bytes

The sleep function argument is in units of seconds, but these may be fractional (to the limits of your system's clock).

my $sec = prompt("Sleep for how many microfortnights? ") * 1.2096;
say "Sleeping...";
sleep $sec;
say "Awake!";

Note that 1.2096 is a rational number in Raku, not floating point, so precision can be maintained even when dealing with very small powers of ten.