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!
Subject
Views
Written By
Posted
8513
July 09, 2004 04:29PM
4160
July 15, 2004 06:54AM
Re: Can MySQL measure duration of a query (in ms)?
4604
July 18, 2004 03:06PM
3244
March 01, 2005 11:27AM
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.