Skip to content

Instantly share code, notes, and snippets.

@thejefflarson
Created May 23, 2011 20:07
Show Gist options
  • Save thejefflarson/987477 to your computer and use it in GitHub Desktop.
Save thejefflarson/987477 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