Hello,
I was wondering if there was any code to limit the time of a procedure such as,SCAR Code:if > 5 * 2 * 1000 then exit
Thanks.
Hello,
I was wondering if there was any code to limit the time of a procedure such as,SCAR Code:if > 5 * 2 * 1000 then exit
Thanks.
SCAR Code:procedure WaitExample;
var
I : Integer;
begin
MarkTime(I);
WriteLn('Hey!');
if TimeFromMark(I) > 1000 then
Exit;
end;
TimeFromMark(I) returns the number of milliseconds that have passed since you Marked the time...
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
Sweet, thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)