(* Collection of code snippets by Arne Vajhøj *)
(* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) *)
program disktest(input,output);

[external] function decc$time : integer; external;

const
   L = 5120;

var
   f     : text;
   i     : integer;
   t1,t2 : integer;
   buf   : packed array [1..L] of char;

begin
   for i := 1 to L do buf[i] := 'X';
   t1 := decc$time;
   open(f,'disktest.dat',new,record_length:=L);
   rewrite(f);
   for i := 1 to 10000 do writeln(f,buf);
   close(f);
   t2 := decc$time;
   writeln(t2-t1);
end.
