Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
queryperformancefrequency(counts);
FillChar(StartInfo,SizeOf(TStartupInfo),#0);
FillChar(ProcInfo,SizeOf(TProcessInformation),#0);
StartInfo.cb := SizeOf(TStartupInfo);
StartInfo.dwFlags := STARTF_USESHOWWINDOW;
StartInfo.wShowWindow := SW_HIDE;
CreateProcess(PChar(edit1.text),nil, nil, nil,False,
CREATE_NEW_PROCESS_GROUP+NORMAL_PRIORITY_CLASS,
nil, nil, StartInfo, ProcInfo);
QueryPerformanceCounter(Time);
Ret := WaitForSingleObject(ProcInfo.hProcess, StrToInt(edit2.text));
QueryPerformanceCounter(Aux);
Time := Aux - Time;
S1 := Format('%f', [Time/Counts]);
if Ret = WAIT_TIMEOUT then
TerminateProcess(ProcInfo.hProcess, 0);