I'm not sure how you do it in Perl, but in the Arduino world you read the system time, add the desired time period, call the function, and loop until the system time matches the saved time.
This extends the Setup()/Loop() abstraction with pseudo tasking.
James
There's never enough time to do it right, but always enough time to do it over...
In reply to Re: Call function no more than every 0.1 seconds
by jmlynesjr
in thread Call function no more than every 0.1 seconds
by zapoi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |