mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [MOD] Improve elapsed time calc and code refactoring.
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
Reference in New Issue
Block a user