PHP 取毫秒

if (!function_exists('msec_time')) {
    function msec_time() {
        [$msec, $sec] = explode(' ', microtime());
        $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
        return $msectime;
    }
}
posted @ 2025-03-07 18:20  快乐的提千万  阅读(14)  评论(0)    收藏  举报