SRL Archive - OSR Help

Timestamp in writeln;


Sin

2012-12-16 16:51:47

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

rj

2012-12-16 16:52:50

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

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

Sin

2012-12-16 16:54:04

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

Le Jingle

2012-12-16 16:56:37

found: keyword 'TimeStamp'; section: help

result [show code] - snippet author = Dgby714;


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;

rj

2012-12-16 17:01:38

Np, I just learned how to do it yesturday