how to get load time in milliseconds or microseconds in mysql

前端 未结 3 1211
攒了一身酷
攒了一身酷 2020-12-19 09:09

I\' ve searched and searched, but I wasn\'t able to find an easy way to get this:

Query OK, 50000 rows affected (0.35 sec) 

in milliseconds

3条回答
  •  忘掉有多难
    2020-12-19 09:36

    You could time it yourself in the code that runs the query:

    Pseudo code:

    double StartTime = 
    Execute SQL Query 
    double QueryTime =  - StartTime
    

提交回复
热议问题