diff --git a/lib/suo/client/base.rb b/lib/suo/client/base.rb index a886159..7fc87f7 100644 --- a/lib/suo/client/base.rb +++ b/lib/suo/client/base.rb @@ -132,10 +132,10 @@ def synchronize end def retry_with_timeout - start = Time.now.to_f + start = Process.clock_gettime(Process::CLOCK_MONOTONIC) retry_count.times do - elapsed = Time.now.to_f - start + elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start break if elapsed >= options[:acquisition_timeout] synchronize do