On Friday 05 April 2002 17:57, Ron Allen wrote:
> Does anybody out there know how to get the amount of time that a search
> took and then display it on the webpage!!!
$TIMER_START = explode(" ", microtime());
$TIMER_START = $TIMER_START[1] + $TIMER_START[0];
## Do some stuff here:
$TIMER_END = explode(" ", microtime());
$TIMER_END = $TIMER_END[1] + $TIMER_END[0];
echo "<br>", $TIMER_END - $TIMER_START, " secs";
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Wouldn't this be a great world if being insecure and desperate were a turn-on?
-- "Broadcast News"
*/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php