Originally Posted by
Macro_FTW
Sorry for the gravedig. >.<
Can't gravedig a tutorial
I just have to say that now im amazed of what computers can do.
SCAR Code:
program New;
const
a = 987893126548795462164918163723191846461918743673191845421610891543272456484154234948454324856177159987987987987987977987977987987987987987987987987987987987987987987987198719187178919871879879;
var
i, t, b: integer;
begin
wait(1000);
t := GetSystemTime;
for i := 0 to 1000000 do
b := a shl 946481619784614919817136516651465165116516541564154415415316494981619581654165416541654165413431261948736431915243246191451452914261429142914291429142941921429142941924192419241929219241924192;
writeln('Done in '+inttostr(GetSystemTime - t)+' ms');
end.
this is calculated in the same time as
SCAR Code:
program New;
const
a = 5;
i, t, b: integer;
begin
wait(1000);
t := GetSystemTime;
for i := 0 to 1000000 do
b := a shl 3;
writeln('Done in '+inttostr(GetSystemTime - t)+' ms');
end.
(both took around 1600ms)
i also noticed that (a shl 2) and (a*4) are done in the same time, which means that shifting is not actually necessary in simple scripts.