Documentation for sub sleep-timer

Documentation for sub sleep-timer, assembled from the following types:

class Date

From Date

(Date) sub sleep-timer

sub sleep-timer(Real $seconds = Inf --> Duration)

This function is just like sleep, but returns the amount of time remaining to sleep as a Duration (which will be 0 if the call was not interrupted).

say sleep-timer 3.14;  # OUTPUT: «0␤»