Created
June 28, 2016 22:06
-
-
Save emad-elsaid/14dd8ba029d5ccafca1319ca3fa68659 to your computer and use it in GitHub Desktop.
IRB time method https://makandracards.com/makandra/20541-measure-code-execution-time-in-an-irb-or-rails-console
This file contains hidden or 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
def time(&block) puts Benchmark.measure(&block) end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment