我也想知道。我是这样做的,计较笨
procedure MyThread.Execute;
var
time0,time1,i:integer;
label start1;
begin
time0:=timegettime();
start1:
send[0]:=3;
send[1]:=0;
send[2]:=40;
time1:=timegettime();
if time1-time0>100 then
begin
time0:=time1;
SendData(lsn,send);
RecvData(lsn,recv);
flag:=1;
form1.Timer1.Enabled:=true;
end;
goto start1;
{ Place thread code here }
end;