in reply to The most precise second (timer)

Check the actual duration of a sleep second on your system:
perl -MTime::HiRes=sleep -E 'say sleep 1'

Replies are listed 'Best First'.
Re^2: The most precise second (timer)
by tukusejssirs (Beadle) on Nov 26, 2019 at 16:16 UTC

    Here you go. This is even worse.

    $ time perl -MTime::HiRes=sleep -E 'say sleep 1' 1.000147 real 0m1.139s user 0m0.006s sys 0m0.008s

      You miss the point of this test. Anonymous Monk's point is not to suggest calling out to an external perl. The point is that sleep() itself has inherently imprecise. You requested sleep(1) but actually got 1.000147 seconds of sleep. Therefore fussing over 0.00000XXXX seconds of "error" is futile.

      Good Day,
          Dean

        Therefore fussing over 0.00000XXXX seconds of "error" is futile.

        Yes, but the error is cumulative: 1.000147 seconds of sleep over one day amounts to an error of about 12 seconds, which might be worth fussing over...