下面是具體的檢測程序
unit Unit
interface
uses
Windows
StdCtrls
type
TForm
Edit
Edit
Edit
Button
Button
Timer
procedure FormCreate(Sender: TObject);
procedure Button
procedure Timer
procedure Button
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form
actTime
smmCount
hTimeID:Integer;
iTen:Integer;
proTimeCallBack:TFNTimeCallBack;
procedure TimeProc(uTimerID
dwUser
procedure proEndCount;
implementation
{$R *
//timeSetEvent的回調函數
procedure proEndCount;
begin
actTime
Form
Form
Form
smmCount:=
sTimerCount:=
spCount:=
timeKillEvent(hTimeID);
end;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/25027.html