| elect count(*) as ttc from Tcomb2''''; ADOCommand1.Execute; TotalTime := GetTickCount - TotalTime; Label9.Caption := inttostr(TotalTime); end; procedure TForm1.Button3Click(Sender: TObject); var TotalTime : Cardinal; begin TotalTime := GetTickCount; ADOCommand1.CommandText :=''''select count(PInt) as ttc from TInteger''''; ADOCommand1.Execute; TotalTime := GetTickCount - TotalTime; Label3.Caption := inttostr(TotalTime); TotalTime := GetTickCount; ADOCommand1.CommandText :=''''select count(PGuid) as ttc from TGuid''''; ADOCommand1.Execute; TotalTime := GetTickCount - TotalTime; Label5.Caption := inttostr(TotalTime); TotalTime := GetTickCount; ADOCommand1.CommandText :=''''select count(PComb) as ttc from Tcomb''''; ADOCommand1.Execute; TotalTime := GetTickCount - TotalTime; Label7.Caption := inttostr(TotalTime); TotalTime := GetTickCount; ADOCommand1.CommandText :=''''select count(PComb) as ttc from Tcomb2''''; ADOCommand1.Execute; TotalTime := GetTickCount - TotalTime; Label9.Caption := inttostr(TotalTime); end; end. 很简单的代码,无需加说明了.
上一页 [1] [2] [3] [4] |