Can the mysql slow query log show milliseconds?

Posted by Chase Seibert on Server Fault See other posts from Server Fault or by Chase Seibert
Published on 2010-06-07T15:09:45Z Indexed on 2010/06/07 15:13 UTC
Read the original article Hit count: 277

Filed under:

The mysql slow query log shows query time in whole integers.

# Query_time: 0  Lock_time: 0  Rows_sent: 177  Rows_examined: 177
SELECT ...
# Query_time: 1  Lock_time: 0  Rows_sent: 56  Rows_examined: 208
SELECT ...

There was a microsecond patch to allow mysql to be configured to log queries that take longer than X microseconds to run. But is there a way to have the log output the query time in either milliseconds or microseconds?

© Server Fault or respective owner

Related posts about mysql