microtime as float (#502)

This commit is contained in:
Michał "Gubihe
2022-01-21 10:28:07 +01:00
committed by GitHub
parent 4fb06fb4e5
commit 6d402cef28
3 changed files with 5 additions and 10 deletions

View File

@@ -7,9 +7,8 @@ if (!function_exists("elapsedTime")) {
if ($l_start === false) global $l_start;
if ($l_time === false) global $l_time;
$l_time = explode(' ', microtime());
$l_finish = $l_time[1] + $l_time[0];
return round(($l_finish - $l_start), 4);
$l_time = microtime(true);
return round(($l_time - $l_start), 4);
}
}