Arexx timer help
15-Oct-94 13:07:11
Sb: #43104-Arexx timer help
Fm: Charles Blaquiere 76046,1756
To: Jim Butterfield 73624,14
Jim, to follow up on your idea, I do the following:
Initialization:
use TIME() and store the last digit into X
loop until last digit of TIME() <> X
/* this means you just started a brand new second */
Main loop:
use DELAY() to wait, ohhh, .8 second or so
store the last digit of TIME() into X
loop until last digit of TIME() <> X
do your processing
Basically, you want to trim the .8 seconds to ensure the rest of the loop
can execute every single time without making an entire loop iteration last
more than 1 second. A smaller DELAY() value would help if the other
instructions took up too much time.
Blaq!