Re: PHP Execution Timer
| From: | Justin French | Date: | Thu, 19 Sep 2002 14:06:36 +0000 |
| Subject: | Re: PHP Execution Timer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116878@lists.php.net to get a copy of this message | ||
on 19/09/02 11:37 PM, -=[ Julien Bonastre ]=- (the_radix@the-spectrum.org)
wrote:
> I just want to know what function or module covers this feature.. If it is at
> all possible..
Top of your script:
<?
$timerOn = 1; // set to 0 if you want to turn it off
$timestart = getmicrotime();
?>
Bottom:
<?
if($timerOn)
{
$timeend = getmicrotime();
$timer = $timeend - $timestart;
echo "timer: $timer";
}
?>
Similar things could be done with MySQL quereies, but I haven't looked into
it.
Justin French