I am using MySQLMonitorSQL to log my sql commands.
How do I get the duration in milliseconds that the SQL took to run.
Thanks
Code: Select all
procedure TFrmMain.MySQLMonitorSQL(Sender: TObject; Text: string;Flag: TDATraceFlag);
var
Duration : Integer; // how long the query takes
begin
Duration := ??; // how do I get this value ?
LogSqlStament(Duration,Text)
end;