Skip to content

Instantly share code, notes, and snippets.

@germs12
Created August 28, 2013 12:04
Show Gist options
  • Select an option

  • Save germs12/6365241 to your computer and use it in GitHub Desktop.

Select an option

Save germs12/6365241 to your computer and use it in GitHub Desktop.
Timing Ruby Execution
require "benchmark"
puts(Benchmark.measure { sleep 0.5 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment