views:

103

answers:

2

Is there a way to get the execution time of the last executed query in mysql?

A: 

if using PHP .. you can use microtime() before the query and after the query to figure out how long it took for the query to execute.

Sabeen Malik
+3  A: 

mysql has a builtin profiler. You can enable profiling by issuing set profiling=1; and use show profiles; to get execution times.

soulmerge
and SHOW PROFILE; too
HeavyWave
This is what i was looking thanks
mck89