- sleep
Sleep
- Sleep in seconds.
- It can get either and integer or a floating point number.
examples/time/sleep.cr
puts Time.monotonic sleep 1.5 puts Time.monotonic
27.01:06:47.337685122 27.01:06:48.841641088
puts Time.monotonic sleep 1.5 puts Time.monotonic
27.01:06:47.337685122 27.01:06:48.841641088