microtime() 函数返回当前 Unix 时间戳的微秒数。 封装函数
static public function getMsec() { list($msec, $sec) = explode(' ', microtime()); return intval(((float)$msec + (float)$sec) * 1000); }