well I'm not sure how you would acomplish the first two tasks, but you can at least get an accurate feel for how long a page (or section of code) takes to execute.
There are several timer classes available, the one I use is called Deathead's Timer, wich you can download from: http://www.phpclasses.org/browse.html/package/431.html -----Original Message----- From: Matt Babineau [mailto:[EMAIL PROTECTED]] Sent: May 7, 2002 07:53 To: 'Php-Win (E-mail)' Subject: [PHP-WIN] MySQL Query from PHP - CPU Cost? Is there a way to get the cost in cpu cycles or the milliseconds it takes to process a query and output that statistic in PHP? Or maybe the processing time of the whole page? Matt Babineau Freelance Internet Developer ----------------------------------------- e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] p: 603.943.4237 w: <http://www.illuminatistudios.com/> http:/www.illuminatistudios.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php