SRL Archive - Help

mark time


zluo

2012-06-06 04:29:09

procedure markthetime;
begin
marktime(Timer1)
repeat
wait(200)
begin
if (TimeFromMark(Timer1) > 10000) then
begin
sometask;
marktime(timer1); //would this reset the timer to 0 again?
end;
end;
until (blahblah);
end;
basically would this reset the timer to 0 again but still continue in the loop?

P1ng

2012-06-06 05:24:24

Yep, that resets the timer and then continues on with the loop. So it will perform "sometask" every 10sec while in that loop.