Use this concept with Time::HiRes for greater accuracy.my $t0=time(); while(1){ # do processing # .. # sleep till next polling interval. sleep 60-(time()-$t0)%60; }
In reply to Re: Reasonably accurate timing
by lhoward
in thread Reasonably accurate timing
by traveler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |