update get_microtime() in lib/common.lib.php
This commit is contained in:
parent
e78d92c535
commit
e392cf4bce
1 changed files with 6 additions and 3 deletions
|
|
@ -13,11 +13,14 @@ include_once __DIR__ . '/Hook/hook.extends.class.php';
|
|||
**
|
||||
*************************************************************************/
|
||||
|
||||
// 마이크로 타임을 얻어 계산 형식으로 만듦
|
||||
/**
|
||||
* 마이크로타임을 반환
|
||||
* @return float
|
||||
* @deprecated use `microtime(true)`
|
||||
*/
|
||||
function get_microtime()
|
||||
{
|
||||
list($usec, $sec) = explode(" ", microtime());
|
||||
return ((float) $usec + (float) $sec);
|
||||
return microtime(true);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue