1. 程式人生 > >展示當前頁面所需時間

展示當前頁面所需時間

//程式執行時間

$starttime = explode(' ', microtime());

//程式執行時間
$endtime = explode(' ', microtime());
$thistime = $endtime[0] + $endtime[1] - ($starttime[0] + $starttime[1]);
$thistime = round($thistime, 3);
echo "time:" . $thistime . " s。" . time();