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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user