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
-
.time_in_ms ⇒ Integer
Current monotonic time in milliseconds.
Class Method Details
.time_in_ms ⇒ Integer
Returns 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 |