Code Coverage
 
Lines
Covered
66.67% covered (warning)
66.67%
2 / 3
# Extend core [Time](http://ruby-doc.org/stdlib-2.4.0/libdoc/time/rdoc/Time.html) class.
1
class Time
# See [How do I get elapsed time in milliseconds in Ruby?](http://stackoverflow.com/questions/1414951/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`.
1
def to_ms
0
(self.to_f * 1000.0).to_i
end
end