Module: CI::Reporter::MonotonicTime
- Defined in:
- lib/ci/reporter/monotonic_time.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.time_in_seconds ⇒ Object
17 18 19 |
# File 'lib/ci/reporter/monotonic_time.rb', line 17 def time_in_seconds time_in_nanoseconds / 10 ** 9.0 end |
Instance Method Details
#time_in_nanoseconds ⇒ Object
7 8 9 |
# File 'lib/ci/reporter/monotonic_time.rb', line 7 def time_in_nanoseconds Process.clock_gettime(Process::CLOCK_MONOTONIC, :nanosecond) end |