We don't bite newbies here... much | |
PerlMonks |
Re^3: Call function no more than every 0.1 secondsby jcb (Parson) |
on Aug 13, 2020 at 01:08 UTC ( [id://11120670]=note: print w/replies, xml ) | Need Help?? |
It will get very close. The delay is calculated after the work for "this" cycle has been done. The accuracy is limited by the accuracy of whatever you use to implement the delay, of course, and the system scheduler might preempt your process, but this can be limited by keeping the load reasonable. As I understand, a load average less than the number of processors means that all tasks are (on average) being run whenever they are not blocked.
In Section
Seekers of Perl Wisdom
|
|