Module: Conjur::API::MonotonicTime

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

Instance Method Summary collapse

Instance Method Details

#monotonic_timeObject



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

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