Last active
October 21, 2017 20:13
-
-
Save zanker/ec87eed594bf440a91018c1c4dc04e14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread.new do | |
started_at = Time.now.to_f | |
sleep 1 | |
report_time("thread.contention", (Time.now.to_f - started_at - 1) * 1000) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment