Topic: How i can measure time of code working.

How i can measure time of code working.
You know i have one block with code and i want know how long this worked.

Example:

start = ???

# block with code

puts end + " second"

Thx for help me.

Re: How i can measure time of code working.

A search on the forum found this: http://railsforum.com/viewtopic.php?id=23259