microtime() 函数返回当前 Unix 时间戳的微秒数。
封装函数

static public function getMsec() {
        list($msec, $sec) = explode(' ', microtime());
        return intval(((float)$msec + (float)$sec) * 1000);
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-08-21
  • 2021-12-03
  • 2021-12-30
相关资源
相似解决方案