<?php
/**
* Función simple para replicar el comportamiento en PHP 5
*/
function microtime_float()
{
list($useg, $seg) = explode(" ", microtime());
return ((float)$useg + (float)$seg);
}
$tiempo_inicio = microtime_float();
// Dormir por un momento
usleep(100);
$tiempo_final = microtime_float();
$tiempo = $tiempo_final - $tiempo_inicio;
echo "No hice nada en $tiempo segundos\n";
?>