Merge pull request #252 from kkigomi/patch-3

get_microtime 함수 개선
This commit is contained in:
thisgun
2023-07-17 11:47:11 +09:00
committed by GitHub

View File

@ -9,11 +9,14 @@ include_once(dirname(__FILE__) .'/pbkdf2.compat.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);
} }