Module: Conjur::API::MonotonicTime

Included in:
TokenExpiration, UnableAuthenticator
Defined in:
lib/conjur/base.rb

Instance Method Summary collapse

Instance Method Details

#monotonic_timeObject



267
268
269
270
271
272
# File 'lib/conjur/base.rb', line 267

def monotonic_time
  Process.clock_gettime Process::CLOCK_MONOTONIC
rescue
  # fall back to normal clock if there's no CLOCK_MONOTONIC
  Time.now.to_f
end