Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: The most precise second (timer)

by tukusejssirs (Beadle)
on Nov 26, 2019 at 15:29 UTC ( #11109268=note: print w/replies, xml ) Need Help??

in reply to Re: The most precise second (timer)
in thread The most precise second (timer)

Thanks, Dean! I thought about doing that, but that would slow the calculation a bit, and thus the calculated second would differ a bit more.

Isnít there a way to accomplish this by addition (incrementing the time by a second) instead of substraction (decreamenting the time by a second)?


As I have said, after some tests, the average difference from a real second is -0.000003595544834, which is about 0.000003513663706 more than the average difference in the original code.

I know this is still somewhat irrelevant difference, but we need as precise second as we can get, and since the original version of the code is more precise (by that much), this new code does not solve our problem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11109268]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2021-04-22 00:43 GMT
Find Nodes?
    Voting Booth?

    No recent polls found