Ver Mensaje Individual
  #8 (permalink)  
Antiguo 05/03/2006, 14:54
Avatar de xyyy7
xyyy7
 
Fecha de Ingreso: enero-2004
Ubicación: Maracay.-
Mensajes: 637
Antigüedad: 20 años, 3 meses
Puntos: 5
Si estas usando funciones entonces usalo de esta manera,

Código PHP:
<?
function get_time() 

    
$mtime microtime();   
    
$mtime explode(" ",$mtime);   
    
$mtime $mtime[1] + $mtime[0];   
    
$tiempoinicial $mtime
    return 
$tiempoinicial
}  
//========================
//AQUI TU CONSULTA
//========================
function calculate_time() 

    
$get_time get_time();
    
$mtime microtime();   
    
$mtime explode(" ",$mtime);   
    
$mtime $mtime[1] + $mtime[0];   
    
$tiempofinal $mtime;   
    
$tiempototal = ($tiempofinal $get_time);   
    echo 
"La cosulta se realizo en $tiempototal segundos";
}  
calculate_time();
?>
Saludos.-
__________________
Maracay Edo Aragua - Venezuela :
Mi Favorita :
http://www.MySQL.Com

Última edición por xyyy7; 05/03/2006 a las 18:37