MySQL Forums
Forum List  »  Performance

Re: Can MySQL measure duration of a query (in ms)?
Posted by: Jack Dean
Date: July 18, 2004 03:06PM

I'm using the standard PHP timing technique to determine overal query time. It's not the most accurate method, but it does give me some meaningful statistics for tracking server/client load performance.

$starttime = getmicrotime();
Run Query
$querytime = substr(getmicrotime() - $starttime,0,6);

Results are plotted here:
http://www.sync2it.com/stats/server.php

Regards,

Jack Dean
http://www.sync2it.com
-----------------------------------------------------
Keeps all your bookmarks and favorites in Sync!



Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Can MySQL measure duration of a query (in ms)?
4604
July 18, 2004 03:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.