/**
* 獲取當前系統時間(精確到毫秒)
* @return float
*/
function getMillisecond() {
list($t1, $t2) = explode(' ', microtime());
return (float)sprintf('%.0f', (floatval($t1) + floatval($t2)) * 1000);
}
/**
* 獲取當前系統時間(精確到微秒)
* @return float
*/
function getMicrosecond() {
list($t1, $t2) = explode(' ', microtime());
return (float)sprintf('%.0f', (floatval($t1) + floatval($t2)) * 1000000);
}