Async::Clock #121
Replies: 1 comment
-
You can measure the performance of a block of code: require 'async/clock'
duration = Async::Clock.measure do
sleep 1
end
puts "Duration: #{duration}" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Async::Clock
https://socketry.github.io/async/source/Async/Clock/index.html
Beta Was this translation helpful? Give feedback.
All reactions