procedure TForm1.Button2Click(Sender: TObject);
var
b_time:TDateTime;
bbb:integer;
begin
b_time:=now;
Adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add(edit2.text);
adoquery1.Open;
Label1.Caption:=inttostr(Adoquery1.RecordCount);
bbb:=DateTimeToTimeStamp(Now).time-DateTimeToTimeStamp(b_Time).Time;
label3.Caption:=inttostr(bbb);
end;
这样可以精确到毫秒级