Created
October 21, 2017 20:29
-
-
Save zanker/4e4f7700d33dae48223bd355f5762115 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
started_at = Time.now.to_f # 00:00 | |
# Context switch to another thread | |
# 00:05, Context switch back 5 seconds later | |
response = HTTP.post("/users/create") # 00:06 | |
report_time("users.create", (Time.now.to_f - started_at) * 1000) # 00:06 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment