[fpc-pascal] Why external execution so slow?
Gabor Boros
mlnglsts at bgss.hu
Tue Mar 31 19:37:59 CEST 2020
Hi All,
I need to execute an external program from my application. This
execution is much slower than execute the external application from
command line. I made a simple example (see below) which show 1.7 seconds
for me. Why? (From command line the execution time is 15 milliseconds. I
used Windows 10 64bit.)
var
Start:TDateTime;
OS:String;
begin
Start:=Now;
RunCommandInDir('E:\FPC\3.2.0\bin\i386-win32','fpc.exe',['-h'],OS,[]);
WriteLn(FormatDateTime('nn:ss.zzz',Now-Start));
Gabor
More information about the fpc-pascal
mailing list