Module: Conjur::API::MonotonicTime

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

Instance Method Summary collapse

Instance Method Details

#monotonic_timeObject



156
157
158
159
160
161
# File 'lib/conjur/base.rb', line 156

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