mysql execution time

mck89 picture mck89 · Oct 27, 2009 · Viewed 37.7k times · Source

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

Answer

soulmerge picture soulmerge · Oct 27, 2009

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