module SidekiqUniqueJobs::Timing

def clock_stamp

Returns:
  • (Float) -
def clock_stamp
  if Process.const_defined?("CLOCK_MONOTONIC")
    Process.clock_gettime(Process::CLOCK_MONOTONIC)
  else
    Time.now.to_f
  end
end