Ok guys im trying to use the MarkTime function, how do i reset the timer/counter?
Ok guys im trying to use the MarkTime function, how do i reset the timer/counter?
Last edited by Darcy_Oner; 04-06-2013 at 06:59 AM.

Just re-mark it, MarkTimer(int) or set the int to 0.
Last edited by Justin; 04-06-2013 at 07:17 AM.
Simba Code:program ResetTime;
{$i SRL/SRL.simba}
Var Timer: Integer;
begin
MarkTime(Timer);
Repeat
Wait(1000);
WriteLn('Timer is at ' + IntToStr(TimeFromMark(Timer)) + ' miliseconds');
If TimeFromMark(Timer) > 5000 Then
Begin
Writeln('5 seconds have passed, resetting');
MarkTime(Timer);
End;
Until(False)
end.
Example
There are currently 1 users browsing this thread. (0 members and 1 guests)