Re: [PHP-DB] Cosmetics

2002-04-05 Thread Ron Allen

Works like a champ..friggin sweet
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> 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 "", $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




Re: [PHP-DB] Cosmetics

2002-04-05 Thread Jason Wong

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 "", $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