色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

解析PHP計(jì)算頁面執(zhí)行時(shí)間的實(shí)現(xiàn)代碼

如下所示:
復(fù)制代碼 代碼如下:
<?php
 $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 '<div style="color:#fff;background:#000;position:absolute;top:0px;right:0px;padding:3px 6px;">本次執(zhí)行時(shí)間:', microtime(TRUE) - $this->microtime, '秒</div>';
         else
             echo '<div style="color:#fff;background:#000;position:absolute;top:0px;right:0px;padding:3px 6px;">本次執(zhí)行時(shí)間:', microtime(TRUE) - $_SERVER['REQUEST_TIME_FLOAT'], '秒</div>';
     }
 }

php技術(shù)解析PHP計(jì)算頁面執(zhí)行時(shí)間的實(shí)現(xiàn)代碼,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 宜阳县| 昌吉市| 祥云县| 开鲁县| 车致| 顺平县| 大城县| 长岭县| 忻州市| 额尔古纳市| 理塘县| 富顺县| 华容县| 商水县| 新沂市| 鲁甸县| 岢岚县| 普安县| 巴彦淖尔市| 兴业县| 屯昌县| 秦皇岛市| 武川县| 富裕县| 泗阳县| 唐河县| 天长市| 安丘市| 屏南县| 山东省| 镇赉县| 成都市| 吉林市| 彝良县| 侯马市| 闽清县| 亳州市| 宁南县| 福鼎市| 天等县| 平南县|