Timing a loop
I have a loop that needs to run about 10 seconds. It doesnt need to be exact. I need code to funtion during that time. The code is running at rcslow.
Is this correct?
Is this correct?
Repeat
count:=cnt
HitCount:=HitCount+1
repeat while ina[15]
outa[18]:=1
outa[18]:=0
if cnt>count+200000
quit

Comments
wait := cnt REPEAT UNTIL ((cnt - wait) => 200000) '' Do stuff herewait := cnt REPEAT UNTIL ((cnt - wait) => 200000) '' Do stuff here