Advertisement
WarPie90

Untitled

Mar 31st, 2017
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.31 KB | None | 0 0
  1. program new;
  2.  
  3.  
  4. var
  5.   i,t:Int32;
  6.   a:array of Int32;
  7. begin
  8.   {$R+}
  9.   SetLength(a, 35000000);
  10.   t := GetTickCount();
  11.   for i:=0 to High(a) do a[i];
  12.   WriteLn(GetTickCount() - t);
  13.  
  14.   {$R-}
  15.   SetLength(a, 35000000);
  16.   t := GetTickCount();
  17.   for i:=0 to High(a) do a[i];
  18.   WriteLn(GetTickCount() - t);
  19. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement