php 获取毫秒
<?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;