All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Sql,server,2005的XML最佳实施策略(3)_[SQL,Server教程]
ASP.NET中的异常处理_[Asp.Net教程]
PHP自带可以代替echo调试的unit函数_[PHP教程]
C#中索引器的概念和应用实例
PHP脚本的8个技巧(6)PHP和COM_[PHP教程]
在vc MFC下制作具有XP风格按钮等控件
在不装AD的情况下管理SPS的访问群体_.net资料_编程技术
ASP.NET,2.0高级控件之FileUpload控件_.net资料_编程技术
xhtml+css网页制作教程_[Html教程]
Delphi带进度条的状态栏
Reading number is top 10 pictures
小学生考试又现神作--还有外国的
So beauty, will let you spray blood4
Fan bingbing black wings for platform and DanLuoWang believes beauty1
yy365网站上的美女3
网上疯传的一篇小学作文《爸爸也治不了妈妈》
谁认识这位校花
乳娘帕梅拉安德森5
这只猪到底犯了什么错?
Sell the barbecue as says father du breul4
Average female college students1
Download software ranking
超级战舰
Photoshop 8.0图象编辑软件
Tram sex maniac 2 (H) rar bag12
C语言教程TXT
Unix video tutorial17
XML+Web+Service开发教程
jdk1.6 for windows
Tram sex maniac 2 (H) rar bag1
Prostitutes diary
美女写真1
归海一刀 published in(发表于) 2014/2/10 6:56:06 Edit(编辑)
计算页面执行时间_[PHP教程]

计算页面执行时间_[PHP教程]

计算页面执行时间_[PHP教程]

以下类定义了一个计时器,将你的执行脚本加入到"容器"内即可(请看注释)

class timer
{ var StartTime = 0;
var StopTime = 0;
var TimeSpent = 0;
function start(){
this->StartTime = microtime();}
function stop(){
this->StopTime = microtime();}
function spent(){
if (this->TimeSpent) {
return this->TimeSpent;
} else {
StartMicro = substr(this->StartTime,0,10);
StartSecond = substr(this->StartTime,11,10);
StopMicro  = substr(this->StopTime,0,10);
StopSecond = substr(this->StopTime,11,10);
start = doubleval(StartMicro) + StartSecond;
stop = doubleval(StopMicro) + StopSecond;
this->TimeSpent = stop - start;
return substr(this->TimeSpent,0,8)."秒";
}
}// end function spent();
}//end class timer;
//例子
timer = new timer;
timer->start();
/*
你的代码放在此处
*/
timer->stop();
echo "执行本SCRIPT共".timer->spent();
?>






添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.