module CI::Reporter::MonotonicTime
Public Instance Methods
time_in_nanoseconds()
click to toggle source
# File lib/ci/reporter/monotonic_time.rb, line 7 def time_in_nanoseconds Process.clock_gettime(Process::CLOCK_MONOTONIC, :nanosecond) end
time_in_seconds()
click to toggle source
# File lib/ci/reporter/monotonic_time.rb, line 17 def time_in_seconds time_in_nanoseconds / 10 ** 9.0 end