
 ...Podrias usar esto: 
Colocas este codigo antes de abrir tu consulta.- 
 Código PHP:
    <?
$mtime = microtime(); 
$mtime = explode(" ",$mtime); 
$mtime = $mtime[1] + $mtime[0]; 
$tiempoinicial = $mtime; 
?>    
  Y este a continuación despues de cerrar tu consulta o mostral los resultados .- 
 Código PHP:
    <?
$mtime = microtime(); 
$mtime = explode(" ",$mtime); 
$mtime = $mtime[1] + $mtime[0]; 
$tiempofinal = $mtime; 
$tiempototal = ($tiempofinal - $tiempoinicial); 
 
echo "La cosulta se realizo en $tiempototal segundos"; 
?>    
  Saludos.-