From: NKN
Writeln(TimeRunning)
That writes how long the script was running.
yeah I don't need that because I try two scripts to communicate with eachother :) And they need to know how late it is and how long ago a message was sent..;)
EDIT:
Interesting….
program New;
{$i SRL\SRL.simba} // includes all main functions
begin // ------------ main loop ---------- \\
SetupSRL; // essential function to make bots work
writeln(TheTime);
//writeln(TheDate);
writeln(Now);
wait(1000);
writeln(Now);
Now
end.
returns this:
Compiled successfully in 624 ms.
SRL Compiled in 15 msec
09:29:58 PM
41082.8958119907
41082.8958235995
Successfully executed.
so what does the decimals mean? because it isn't in miliseconds as you can see…
Edit: found out that a second is about 0.0000115740695…. because this…
program New;
{$i SRL\SRL.simba} // includes all main functions
var
a,b: extended;
c: integer;
begin
SetupSRL; // essential function to make bots work
for c:= 0 to 60 do
begin
a:= Now;
wait(1000);
b:= Now;
writeln(b-a);
end;
end.
returns this:
SRL Compiled in 16 msec
0.00001157407678
0.0000115740695
0.00001157407678
0.0000115740695
0.00001157407678
0.00001157407678
0.00001157407678
0.0000115740695
0.0000115740695
0.0000115740695
0.00001157407678
0.00001157407678
0.0000115740695
0.00001157407678
0.0000115740695
0.00001158565282
0.00001157407678
0.0000115740695
0.00001157407678
0.00001157407678
0.00001157407678
0.0000115740695
0.00001157407678
0.00001158564555
0.00001157407678
0.0000115740695
0.00001157407678
0.00001157407678
0.00001157407678
0.00001157407678
0.00001157407678
0.0000115740695
0.0000115740695
0.00001158564555
0.0000115740695
0.00001157407678
0.00001158565282
0.00001157407678
0.00001157407678
0.00001157407678
0.00001157407678
0.00001158565282
0.0000115740695
0.00001157407678
0.0000115740695
0.00001157407678
0.00001157407678
0.00001157407678
0.0000115740695
0.00001157407678
0.00001158565282
0.00001157407678
0.0000115740695
0.00001157407678
0.00001157407678
0.00001157407678
0.00001157407678
0.0000115740695
0.0000115740695
0.00001157407678
0.00001157407678
Successfully executed.
uhhh so EXCEL says that the average equals 0.000011575231836333 so a second is 0.000011575231836333….
Now returns 41082.9062785532….
41082.9062785532/0.000011575231836333 = 3549208072 , so many seconds is it.
1 year = 31556926 seconds
3549208072 / 3549208072 = 112.47001919147429495636133244198
ahhhhhh so Now has started counting on 1900 :D
lol
ah I know how it is… 41082.9110943171 is the time from 1 Januari 1900
in DAYS