本文整理自网络,侵删。
//在减少占用资源的情况下,等待MSecs毫秒procedure WaitSomeTime(MSecs:LongInt);var FirstTickCount,Now:LongInt;begin FirstTickCount := GetTickCount(); repeat Application.ProcessMessages; Now := GetTickCount(); until (Now - FirstTickCount >= MSecs) or (Now < FirstTickCount);end;
相关阅读 >>
Delphi setcurrentdir 设置当前文件夹路径
Delphi使用tclientdataset时不携带midas.dll的方法
Delphi xe android platform uses-permission[2] androidmanifest.xml 配置
更多相关阅读请进入《Delphi》频道 >>