Medir el tiempo de ejecución de un script php
Submitted by admin on Mié, 07/29/2009 - 01:40
Tomado de
http://forum.powweb.com/archive/index.php/t-7928.html
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
mysql_query( "" );
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Did nothing in $time seconds";»
- Inicie sesión o regístrese para enviar comentarios