Skip to content

Instantly share code, notes, and snippets.

@esurdam
Forked from thejefflarson/bm.rb
Created December 21, 2016 23:38
Show Gist options
  • Save esurdam/04db50cc1d84afa60ab8b39d95f5d6dc to your computer and use it in GitHub Desktop.
Save esurdam/04db50cc1d84afa60ab8b39d95f5d6dc to your computer and use it in GitHub Desktop.
poor man's benchmark
def measure
t = Time.now
yield
puts Time.now - t
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment