1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

more accurate timing function.

This commit is contained in:
Ilia Alshanetsky
2005-06-14 23:59:29 +00:00
parent 9392a1c9de
commit 2d92309797

View File

@@ -336,10 +336,10 @@ function strcat($n) {
/*****/
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
{
$t = gettimeofday();
return ($t['sec'] + $t['usec'] / 1000000);
}
function start_test()
{