fptime.pp 416 B

12345678910111213141516171819
  1. uses
  2. bench,sysutils;
  3. var
  4. i : longint;
  5. ps : ansistring;
  6. sticks : int64;
  7. ProcessExitCode : Integer;
  8. begin
  9. ps:='';
  10. if paramcount>0 then
  11. begin
  12. for i:=2 to paramcount do
  13. ps:=ps+' "'+paramstr(i)+'"';
  14. sticks:=GetMicroSTicks;
  15. ProcessExitCode:=ExecuteProcess(paramstr(1),ps);
  16. writeln(stderr,(GetMicroSTicks-sticks)/1000:0:3,' ms');
  17. halt(ProcessExitCode);
  18. end;
  19. end.