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