$tiempoinicio = microtime(); // Aqui la sentencia MYSQL $tiempofinal = microtime(); echo "La ultima consulta tomo ".($tiempofinal-$tiempoinicio);