This function:
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
is provided on this page:
http://www.php.net/manual/en/function.microtime.php
and is needed for the code below to work properly.
Beau
> <?
> $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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php