while (1) { $waketime = time + $sleep_duration; &do_complex_things; sleep($waketime-time); }
In reply to Re: What is the best way to run periodic tasks (once per minute)?
by qi3ber
in thread What is the best way to run periodic tasks (once per minute)?
by Novician
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |