Module: Rack::Timeout::MonotonicTime

Extended by:
MonotonicTime
Included in:
Rack::Timeout, MonotonicTime, Scheduler
Defined in:
lib/rack/timeout/support/monotonic_time.rb

Overview

Instance Method Summary collapse

Instance Method Details

#fsecs_javaObject



12
13
14
# File 'lib/rack/timeout/support/monotonic_time.rb', line 12

def fsecs_java
  java.lang.System.nanoTime() / 1_000_000_000.0
end

#fsecs_monoObject



8
9
10
# File 'lib/rack/timeout/support/monotonic_time.rb', line 8

def fsecs_mono
  Process.clock_gettime Process::CLOCK_MONOTONIC
end