update get_microtime() in lib/common.lib.php

This commit is contained in:
Amberstone 2024-09-28 00:12:57 +09:00
parent e78d92c535
commit e392cf4bce
Signed by: amber
GPG key ID: 094B0E55F98D8BF1

View file

@ -13,11 +13,14 @@ include_once __DIR__ . '/Hook/hook.extends.class.php';
** **
*************************************************************************/ *************************************************************************/
// 마이크로 타임을 얻어 계산 형식으로 만듦 /**
* 마이크로타임을 반환
* @return float
* @deprecated use `microtime(true)`
*/
function get_microtime() function get_microtime()
{ {
list($usec, $sec) = explode(" ", microtime()); return microtime(true);
return ((float) $usec + (float) $sec);
} }