in reply to missing second of time

Use with hires printf "%.0f\n", time;

Replies are listed 'Best First'.
Re^2: missing second of time
by choroba (Cardinal) on Jan 25, 2020 at 12:27 UTC
    It can still happen sometimes. If you sleep for a time longer than 1s, there is a time interval in which the number of sleeps won't be the same as the number of seconds. A similar problem has been discussed recently in The most precise second (timer).
    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
      You're generously overthinking op is an ijit

      only needs rounding

      1579941922.99824 1.00389 1579941924.00213 <- WTF!