[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Cron



At 11.36 -0500 1999.02.16, Simon Barnes wrote:
>Craig Muth sent me the following replacement for sleep() which
>apparently doesn't tie up the Mac.  I haven't tested it:
>
>use Mac::Events;
>sub pause {
>  my ($time) = @_;
>  my $start = time();
>  WaitNextEvent until time > ($start + $time);
>}

I don't understand this "tie up the Mac" stuff with sleep.  Maybe it is
that I have fast machine, but I would use sleep with the Cron I posted, and
saw no noticable slowdown.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch