* [MOD] Improve elapsed time calc and code refactoring.

This commit is contained in:
nuxsmin
2017-04-20 13:31:49 +02:00
parent 1eadaf9882
commit fa65e08029
4 changed files with 6 additions and 12 deletions

View File

@@ -97,8 +97,7 @@ function mb_ucfirst($string)
*
* @returns float con el tiempo actual
*/
function microtime_float()
function getElapsedTime()
{
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
return microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
}