class Time

Extend core Time class.

Public Instance Methods

to_ms() click to toggle source

See How do I get elapsed time in milliseconds in Ruby?

Not really used. Only to measure the execution from start to end. See bin/timr.

# File lib/timr/ext/time.rb, line 8
def to_ms
    (self.to_f * 1000.0).to_i
end