Module: Labkit::System

Defined in:
lib/labkit/system.rb

Overview

A helper class to store system-related methods used in metrics, tracing, and logging

Class Method Summary collapse

Class Method Details

.monotonic_timeObject

Returns the current monotonic clock time as seconds with microseconds precision.

Returns the time as a Float.



9
10
11
# File 'lib/labkit/system.rb', line 9

def self.monotonic_time
  Process.clock_gettime(Process::CLOCK_MONOTONIC, :float_second)
end