Module: Statsd::MonotonicTime

Defined in:
lib/statsd/monotonic_time.rb

Overview

MonotonicTime guarantees that the time is strictly linearly increasing (unlike realtime).

Class Method Summary collapse

Class Method Details

.time_in_msInteger

Returns current monotonic time in milliseconds.

Returns:

  • (Integer)

    current monotonic time in milliseconds



13
14
15
# File 'lib/statsd/monotonic_time.rb', line 13

def time_in_ms
  time_in_nanoseconds / (10.0 ** 6)
end