ARexx (52/81)

From:Jeff Gilpin
Date:25 May 2001 at 16:28:22
Subject:Re: Timer Device

Hello Alfonso,

On 22-May-01 Ron Phillips wrote:

>> Could anybody recommend a library or anything else that operates a
>> timer.device that runs as a task without chewing up processor cycles
>> just checking and waiting for an event. The time functions in Arexx
>> have pretty limited use. What I am trying to do is set some times and
>> have a flag or other signal sent when that event comes up. I can do
>> this now but constantly looping and checking the time against a
>> varible really bogs down other things that are running. I don't know
>> for sure about Arexx but doing this in other interpreters usually
>> results in the garbage building up and crashing the computer. Surely
>> there is a more elegant way to do something this simple.

On 25-May-01, you wrote:

>
>> The Time() function will give you the system time with the
>> appropriate parameters. Just use Wait or Delay for 30 sec, 5 min or
>> whatever
>
> The original question was about how to wait for sime time
> and being able to do other things. The biggest limitation of
> Delay() or shell command wait x is that they don't permit
> you to do other things while waiting (even a break_c
> sent to the macro is ignored till time expired). So the
> only solution is to use rmh.library/timers to wait for time
> but do also other usefull things in the meantime.

I guess I misinterpreted the original request. I thought he just wanted
to run a script in the background to turn things on and off at certain
times without using continuous polling to check the time.

Regards,



Jeff

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/