Crystal Forum
How to do rand(0.2..0.5) after Deprecated ::sleep?
Help & Support
zw963
October 12, 2024, 4:54pm
2
ping
Deprecate `::sleep(Number)` by HertzDevil · Pull Request #14962 · crystal-lang/crystal · GitHub
show post in topic
Related topics
Topic
Replies
Views
Activity
Use Time.monotonic to measure time in spawn not work as expected
Help & Support
1
292
May 10, 2023
How to sleep for nanoseconds?
Help & Support
7
558
May 12, 2024
Generalize `#sleep` for monotonic and wall clock
Crystal Contrib
11
270
September 2, 2025
Ambiguous use of `Time::Span` for duration and monotonic clock
Crystal Contrib
16
532
January 1, 2026
When are folks removing `Time.monotonic` usage from their shards?
Help & Support
6
256
February 18, 2026