Module: Diagnostics::Sample::Measure::LogText

Defined in:
lib/diagnostics/sample/measure.rb

Class Method Summary collapse

Class Method Details

.elapsed_time_milliseconds(elapsed_time_nanoseconds) ⇒ Object



60
61
62
# File 'lib/diagnostics/sample/measure.rb', line 60

def self.elapsed_time_milliseconds(elapsed_time_nanoseconds)
  "%fms" % Rational(elapsed_time_nanoseconds, 1_000_000)
end