Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Re: Reasonably accurate timing

by lhoward (Vicar)
on Jul 24, 2001 at 16:37 UTC ( #99306=note: print w/replies, xml ) Need Help??

in reply to Re: Reasonably accurate timing
in thread Reasonably accurate timing

IMHO, being half a second off doesn't matter in this situation (measuring "system data"). But if the situation were different (scientific data) a fraction of a second could be very important.

In this situation the main thing that needs to be avoided is drift. If you want 60 second intervals, but you have 60.5 second intervals, those 0.5 seconds will add up and you will creep away from where you want to be. In an hour, it'll be off by 30 seconds, etc... What you need is some way of compensating (see all the good solutions above) so that the 0.5 second error doesn't accumulate.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2019-08-20 09:49 GMT
Find Nodes?
    Voting Booth?

    No recent polls found