最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

 更新時(shí)間:2013年06月18日 15:33:57   作者:  
本篇文章是對(duì)PHP計(jì)算頁(yè)面執(zhí)行時(shí)間的實(shí)現(xiàn)代碼進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下
如下所示:
復(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>';
     }
 }

相關(guān)文章

最新評(píng)論

武夷山市| 龙江县| 乡城县| 吉安县| 万安县| 崇仁县| 九龙城区| 包头市| 沙湾县| 浦江县| 桃江县| 房产| 丽水市| 定襄县| 绍兴市| 永春县| 兰坪| 四会市| 阳信县| 浠水县| 湘西| 南安市| 夹江县| 山西省| 鱼台县| 巩留县| 四川省| 松原市| 琼海市| 额敏县| 酒泉市| 温宿县| 宁安市| 阿拉善左旗| 德兴市| 卫辉市| 白银市| 昌图县| 张家界市| 醴陵市| 萝北县|