How do I get the duration the SQL statement to run
Posted: Fri 12 Mar 2010 09:38
Hi
I am using MySQLMonitorSQL to log my sql commands.
How do I get the duration in milliseconds that the SQL took to run.
Thanks
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;