How can i measure the time taken by a method and the individual statements in that method in Ruby. If you see the below method i want to measure the total time taken by the meth
In the spirit of wquist's answer, but a little simpler, you could also do it like below:
start = Time.now # code to time Time.now - start