shiningthrough

Simple way to profile your Ruby application

05 April 2010
start = Time.now
# Place code here to time its execution.
puts "#{ Time.now - start } seconds to execute."

Comments

Ryan Bates

Are you serious dude? This has gotta be the lamest Ruby blog entry ever! R.

shiningthrough

Is that really you Ryan? well I find these little snippets useful, and perhaps someone new to the language will too.