Results 1 to 6 of 6

Thread: New time in "Timing.scar" suggestion

  1. #1
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default New time in "Timing.scar" suggestion

    Ignore
    Edit:
    I remember why I posted this. I hate how long TimeRunning; is... Hard to put in a progress report that fits well.

    SCAR Code:
    function ScriptRunTime: string;
    var
      H,M,S:integer;
    begin
      ConvertTime(gettimerunning, H, M, S);
      result := inttostr(H) + 'h:' + inttostr(M) + 'm:' + inttostr(S)+'s';
    end;

    Very small suggestion... But I use that way more then the other timers in the times include.

    Idk if the letters in the output should be capitalized or not. Probably caps.

    This would be used a lot in all progress reports.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Very good suggestion, Narcle, although I would prefer something like this:

    SCAR Code:
    procedure ScriptRunTime(var H, M, S: Integer);
    begin
      ConvertTime(GetTimeRunning, H, M, S);
    end;


    I think you understand why I want it to be stored to vars. (Custom placing/usage of vars ect.)


    Whaddyathink?


    Edit2: *clears up head*


    What is the difference between this and TimeRunning?

  3. #3
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by EvilChicken! View Post
    Very good suggestion, Narcle, although I would prefer something like this:

    SCAR Code:
    procedure ScriptRunTime(var H, M, S: Integer);
    begin
      ConvertTime(GetTimeRunning, H, M, S);
    end;


    I think you understand why I want it to be stored to vars. (Custom placing/usage of vars ect.)


    Whaddyathink?


    Edit2: *clears up head*


    What is the difference between this and TimeRunning?
    Not sure what the difference is exactly. Its probably the same. But anyways...

    I have it a string output because all of the times in Timings.scar are string outputs. Making it easier to time stamp stuff. Using your method... you'd still have to declare all the variables just to writeln the stuff out. Defeating the purpose of having it included.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  4. #4
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

  5. #5
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Well fuck, I've been missing it. Hrmm

    Edit:
    I remember why I posted this. I hate how long TimeRunning; is... Hard to put in a progress report that fits well.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  6. #6
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by EvilChicken! View Post
    Very good suggestion, Narcle, although I would prefer something like this:

    SCAR Code:
    procedure ScriptRunTime(var H, M, S: Integer);
    begin
      ConvertTime(GetTimeRunning, H, M, S);
    end;


    I think you understand why I want it to be stored to vars. (Custom placing/usage of vars ect.)


    Whaddyathink?


    Edit2: *clears up head*


    What is the difference between this and TimeRunning?
    ConvertTime is faster Oh, also, what would be the point in that procedure? It'll be way easier (if doing your way) to just put ConvertTime(GetTimeRunning, H, M, S) instead of ScriptRunTime(H, M, S)
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. action="www.site.com" method="post"
    By Jason2gs in forum General
    Replies: 4
    Last Post: 05-17-2007, 11:50 PM
  2. Replies: 3
    Last Post: 04-19-2007, 03:44 AM
  3. Replies: 5
    Last Post: 10-26-2006, 11:30 PM

Posting Permissions

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