Results 1 to 3 of 3

Thread: Procedure time limits

  1. #1
    Join Date
    Sep 2006
    Posts
    322
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Procedure time limits

    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.

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    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]

  3. #3
    Join Date
    Sep 2006
    Posts
    322
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Sweet, thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. More of YoHoJo Testing The Limits Of His Hair...
    By YoHoJo in forum Semi Stupid Pictures
    Replies: 20
    Last Post: 05-10-2008, 05:21 PM
  2. XYZ limits?
    By almost in forum OSR Help
    Replies: 0
    Last Post: 11-18-2007, 05:38 PM
  3. Long time listener...first time caller
    By Ransom in forum Who Are You ? Who ? Who ?
    Replies: 0
    Last Post: 11-04-2006, 02:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •