Esta función mide el tiempo que tarde en ejecutarse una página web.
<?php //Crea una variable con el tiempo inicial $tiempo_inicial = microtime(true); // Coloca en este espacio tu // PHP // HTML // JavaScript // CSS // etc, //Crea una variable con el tiempo final $tiempo_final = microtime(true); //Restamos los dos tiempos $tiempo_ejecucion = $tiempo_final - $tiempo_inicial; echo 'La página tardó '.round($tiempo_ejecucion,4).' segundos en ejecutarse'; ?>




