1

It's for mysql. In mysql, the default shows in seconds. I want the time unit to be accurated to milliseconds.

pyth0ner
  • 181
  • 1
  • 8
  • mysql does not have this feature. PostgresSql does, [Read More](http://stackoverflow.com/questions/2572209/why-doesnt-mysql-support-millisecond-microsecond-precision) – Ibu Jun 30 '11 at 07:15

3 Answers3

1

Check the link http://webmonkeyuk.wordpress.com/2011/04/18/mysql-servers-built-in-profiling-support/

niktrs
  • 9,858
  • 1
  • 30
  • 30
1

Personally I tend to find it a better thing to do at the app level. A query can be slow for a multitude of reasons:

  • Dismal SQL statement
  • Network latency (send the SQL, bring back the result)
  • Parsing the result (eg date/datetime in ruby)

If you log the complete query time as seen by the app, you spot more bottlenecks.

Denis de Bernardy
  • 75,850
  • 13
  • 131
  • 154
0

Have a look at Query Profiler for MySQL queries.

Devart
  • 119,203
  • 23
  • 166
  • 186