RE: [PHP-WIN] MySQL Query from PHP - CPU Cost?
| From: | HKG) | Date: | Tue, 07 May 2002 14:48:33 +0000 |
| Subject: | RE: [PHP-WIN] MySQL Query from PHP - CPU Cost? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13600@lists.php.net to get a copy of this message | ||
> 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?
The most naive approach is the brute force test: Run the query and
count the time it toke to execute it. However this only counts the
overall time it took to execute the query and not the true time
of the execution.
The other way is to consult the analysis tools, if provided,
with the RDBMS.