RE: [PHP] show mysql- processing time

From: Date: Thu, 21 Nov 2002 16:43:41 +0000
Subject: RE: [PHP] show mysql- processing time
Groups: php.general 
Request: Send a blank email to php-general+get-125440@lists.php.net to get a copy of this message
This is what I did. $StartTime = date("U"); $result = mysql_query($query); $EndTime = date("U"); $difference = $EndTime - $StartTime; echo "<p>The query took $difference seconds to generate</p>\n"; Perhaps not the most accurate but who cares about a few milliseconds. Robbert van Andel -----Original Message----- From: Tularis [mailto:tularis@xmbforum.com] Sent: Thursday, November 21, 2002 8:28 AM To: php-general@lists.php.net Subject: [PHP] show mysql- processing time I was wondering if anyone knew of a way to return the processing time of a mysql query via php. And NOT using the $starttime = time(); mysql_query($whatever); $endtime = time(); $processingtime = $endtime - $starttime; Does anyone???? please? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."

« previous php.general (#125440) next »