Results 1 to 4 of 4

Thread: What happened to GetTimeFromMark(t);

  1. #1
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default What happened to GetTimeFromMark(t);

    Did it get taken out of the include?

  2. #2
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Did it get taken out of the include?
    T.start to start the timer

    T.getTime to get the time

    T is a TTimeMarker (doesn't need to be T)

  3. #3
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    T.start to start the timer

    T.getTime to get the time

    T is a TTimeMarker (doesn't need to be T)
    t.pause() to pause
    t.reset() to reset to 0
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  4. #4
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Simba Code:
    function GetTimeFromMark(t: integer):integer;
    begin
      result := GetSystemTime - t;
    end;

    procedure MarkTime(var t);
    begin
      t := GetSystemTime;
    end;
    Problem solved!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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