<?php
//获取毫秒
function msectime() {
list($msec, $sec) = explode(' ', microtime());
$msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
return $msectime;
}
$start_time = msectime();
$end_time = msectime();
echo '执行时间:'. $end_time - $start_time;
链接:查看原文
博客提及查看原文链接,但未给出具体内容,仅已知标签包含 PHP 和毫秒,推测可能围绕 PHP 中毫秒相关操作等信息技术内容。
1671

被折叠的 条评论
为什么被折叠?



