in reply to Re: Re: Mail & Win32
in thread Mail & Win32
And end it like this:my $interval = 600; #for ten minutes, adjust as needed my $time_to_work = time() + $interval;
I should point out that this is not pretty even in my mind, but I've used similar code before when running time was variant on input or on network load. You can move the first part (excepting the declarations, of course) to the bottom of the loop and the last part to the top of the loop in order to make it wait before instead of after your main work.sleep ($time_to_work - time());
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Mail & Win32
by Mitch (Sexton) on Jun 27, 2003 at 19:02 UTC |