新聞中心
本篇文章為大家展示了使用PHP怎么計(jì)算頁面的執(zhí)行時(shí)間,內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。

代碼如下:
$t = new executeTime;
phpinfo();
class executeTime{
private $microtime;
public function __construct(){
$this->microtime = microtime(true);
}
public function getNow(){
$this->__dectruct();
}
public function __destruct(){
if (empty($_SERVER['REQUEST_TIME_FLOAT']))
echo '
else
echo '
}
}
上述內(nèi)容就是使用PHP怎么計(jì)算頁面的執(zhí)行時(shí)間,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
文章標(biāo)題:使用PHP怎么計(jì)算頁面的執(zhí)行時(shí)間-創(chuàng)新互聯(lián)
轉(zhuǎn)載源于:http://www.dlmjj.cn/article/iccse.html


咨詢
建站咨詢
