Re: Cosmetics
| From: | Jason Wong | Date: | Fri, 05 Apr 2002 10:15:44 +0000 |
| Subject: | Re: Cosmetics | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18241@lists.php.net to get a copy of this message | ||
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"
*/