From: Aaron Smith Date: 2007-06-26T05:20:39+09:00 Subject: basic millisecond code profile? if I need to see the amount of milliseconds / seconds a method takes can I do something like this: class Person attr_accessor :first def pl now = Time.now.usec #get milliseconds 0.upto(10000) do |i| i = 'g' end now2 = Time.now.usec #get milliseconds puts String(now2 - now) end end p = Person.new p.pl whats the best way to do this? -- Posted via http://www.ruby-forum.com/.