Re: Getting the parsing time of a script
| From: | David Otton | Date: | Sat, 31 May 2003 11:14:28 +0000 |
| Subject: | Re: Getting the parsing time of a script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149642@lists.php.net to get a copy of this message | ||
On Sat, 31 May 2003 11:39:41 +0100, you wrote:
>Is there any way getting the time taken to parse a script?
>
>IE:
>
>This page took 0.13 seconds to generate.
Call microtime() at the beginning and end of the script.
$timeTaken = $timeEnd - $timeStart;
see
http://uk2.php.net/manual/en/function.microtime.php
and read the comments.