"be consistent" | |
PerlMonks |
Re: timer in perlby LanX (Saint) |
on Feb 20, 2018 at 10:59 UTC ( [id://1209572]=note: print w/replies, xml ) | Need Help?? |
before the loop $start = time; at the end of the loop last if time > $start + $duration; (untested) OR while ( time < $start + $duration) instead of an endless loop.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|