RE: [PHP-WIN] MySQL Query from PHP - CPU Cost?
| From: | HKG) | Date: | Wed, 08 May 2002 13:55:27 +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-13624@lists.php.net to get a copy of this message | ||
> Simple, get the time before you execute the script, the time after, and
> subtract. You may find it more accurate to do an average though (ie, loop x
> times and divide the time taken by x)
That will just measure the life time of the process, not the execution time.
Execution time should more or less always be the same, but life time can
inherently differ dramatically (hundred of percents) between different
execution.