Use monotonic time

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.15.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Just came across this construct in Ruby's resolv code:

         672:           before_select = Process.clock_gettime(Process::CLOCK_MONOTONIC)
         673:           timeout = timelimit - before_select
      

      We should be using this instead of wallclock time.

      See also: https://blog.dnsimple.com/2018/03/elapsed-time-with-ruby-the-right-way/

            Assignee:
            Dmitry Rybakov
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: