Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/02/2008, 13:51
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Medir tiempo de ejecución de un script

Puedes hacerlo así:
Código PHP:
function microtime_float()
{
    list(
$usec$sec) = explode(" "microtime());
    return ((float)
$usec + (float)$sec);
}

$time_start microtime_float();

// haces tus cosas

$time_end microtime_float();
$time $time_end $time_start;
echo 
"Pagina creada en $time segundos"
Saludos.