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:


Jack Dean
Keeps all your bookmarks and favorites in Sync!

Options: ReplyQuote

Written By
Re: Can MySQL measure duration of a query (in ms)?
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.