Advertisement
WarPie90

Untitled

Mar 16th, 2017
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.37 KB | None | 0 0
  1. {$R-}
  2.  
  3. function RandomTPA(n:Int32; w,h:Int32): TPointArray;
  4. var i:Int32;
  5. begin
  6.   SetLength(result, n);
  7.   for i:=0 to n-1 do
  8.     Result[i] := Point(Random(w), Random(h));
  9.  
  10. end;
  11.  
  12. var
  13.   TPA:TPointArray;
  14.   tm:Int64;
  15. begin
  16.   TPA := RandomTPA(50000, 700,700);
  17.   tm := GetTickCount();
  18.   SplitTPA(TPA, 4);
  19.   WriteLn('took ' + ToStr(GetTickCount()- tm) + ' ms');
  20. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement