<html>
<body>
echo(microtime());
/**
* Simple function to replicate PHP 5 behaviour
*/
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
// Sleep for a while
usleep(100);
$time_end = microtime_float();
$time = $time_end - $time_start;
echo "Did nothing in $time seconds\n";
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_microtime by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:50:58 GMT -->
</html>