You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ryzom-core/code/ryzom/tools/server/www/timer.php

18 lines
270 B
PHP

<?php
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$__start = getmicrotime();
function display_time()
{
global $__start;
$end = getmicrotime();
echo (($end-$__start)*1000)." ms";
}
?>