Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/nakamura.rb
Overview
Convert time to nanoseconds
Instance Method Summary collapse
Instance Method Details
#to_nsec ⇒ Object
13 14 15 |
# File 'lib/nakamura.rb', line 13 def to_nsec self.to_f.to_s.gsub(".", "").to_i end |