in reply to Re: missing second of time
in thread missing second of time
DB<25> use Time::HiRes qw( time sleep ); DB<26> print time, "\n";$nextsecond = int time + 1;sleep $nextsecon +d - time;print time, "\n" 1579981231.91855 1579981232.00031 DB<27>
Which is normally not a problem, if the loops body starts with the sleep, before doing something.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|