in reply to What is the best way to run periodic tasks (once per minute)?
while (1) { $waketime = time + $sleep_duration; &do_complex_things; sleep($waketime-time); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: What is the best way to run periodic tasks (once per minute)?
by flyingmoose (Priest) on Feb 03, 2004 at 00:25 UTC |