欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

如何用php獲取程序執(zhí)行的時間

 更新時間:2013年06月09日 17:10:03   作者:  
本篇文章是對使用php獲取程序執(zhí)行的時間進行了詳細的分析介紹,需要的朋友參考下
在head.htm中加入,也就是在默認模版中添加“$stime=microtime(true); //獲取程序開始執(zhí)行的時間”
復(fù)制代碼 代碼如下:

<!--<?php
$stime=microtime(true); //獲取程序開始執(zhí)行的時間
$GuideFid[$fid]=str_replace("<a href='$webdb[www_url]' class='guide_menu'>>首頁</a>","",$GuideFid[$fid]);
$fupId=intval($fupId);
$topMenu[$fupId]='ck';
print <<<EOT
-->

這里是網(wǎng)頁
再在foot.htm修改如:
復(fù)制代碼 代碼如下:

<!--
EOT;
$etime=microtime(true);//獲取程序執(zhí)行結(jié)束的時間
$total=$etime-$stime;   //計算差值
echo "<br />[頁面執(zhí)行時間:{$total} ]秒";
?>

相關(guān)文章

最新評論