Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/motion-profiler/report.rb
Overview
Add a convenience method to float for coverting from seconds to milliseconds.
Instance Method Summary collapse
Instance Method Details
#to_ms ⇒ Object
4 5 6 |
# File 'lib/motion-profiler/report.rb', line 4 def to_ms "%.3f ms" % (self * 1000) end |