Results 1 to 5 of 5

Thread: Timestamp in writeln;

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

    Default Timestamp in writeln;

    I remember that it's in SRL_Procs but can't remember how to do it, any help?

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    In my repeat I put
    Simba Code:
    SetScriptProp(SP_WriteTimeStamp, [True]);

    So my repeat looks like:
    Simba Code:
    repeat
     SetScriptProp(SP_WriteTimeStamp, [True]);
     FindRock;
     until false
     Freedtm(IronOre);
     FreeBitmap(DropOre);
    end.

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

    Default

    Yess that's what I was thinking of!
    Thank youuuuu!

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    found: keyword 'TimeStamp'; section: help

    result [show code] - snippet author = Dgby714;
    Simba Code:
    function TimeStamp: string;
    var
      Time: TDateTime;
      H, M, S, MS: word;
    begin
      Time := Now;
      DecodeTime(Time, H, M, S, MS);
      Result := Padz(IntToStr(H), 2) + ':' + Padz(IntToStr(M), 2) + ':' + Padz(IntToStr(S), 2);
    end;

  5. #5
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Np, I just learned how to do it yesturday

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
  •