ARexx (39/81)

From:Neil Bothwick
Date:23 May 2001 at 10:43:50
Subject:Re: Timer device

ronphil said,

> 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.

Use the delay() function from rexxsupport.library. It takes one
argument, the delay in ticks.

You can use time() to calculate how many seconds between now and when
you want the event to occur, then multiply this by 50 or 60 and pass it
to delay().

Cheers

Neil



Neil Bothwick - New Media Editor, Amiga Active Magazine

Dream as if you'll live forever. Live as if you'll die today.

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/