Log in

View Full Version : mark time



zluo
06-06-2012, 08:29 AM
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
06-06-2012, 09:24 AM
Yep, that resets the timer and then continues on with the loop. So it will perform "sometask" every 10sec while in that loop.