计算当前时间--毫秒

/**  
* 当前时间 
* 
* @access public 
* @return float 返回当前毫秒数
*/ 
function msectime() {
	list($msec, $sec) = explode(' ', microtime());
	$msectime =  (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
	return $msectime;
}

猜你喜欢

转载自blog.csdn.net/qq_39940866/article/details/80567349