跳至
startTime = 0;
$this->endTime = 0;
}
/**
* 设置程序开始时间
*/
public function setStartTime()
{
$this->startTime = microtime(true);
}
/**
* 设置程序结束时间
*/
public function setEndTime()
{
$this->endTime=microtime(true);
}
/**
* 计算程序执行时间
* @return 返回程序执行的毫秒数
*/
public function getExecuteTime()
{
return $this->endTime - $this->startTime;
}
}
2. [文件] GetExecuteTime.class.php ~ 957B
startTime = 0;
$this->endTime = 0;
}
/**
* 设置程序开始时间
*/
public function setStartTime()
{
$this->startTime = microtime(true);
}
/**
* 设置程序结束时间
*/
public function setEndTime()
{
$this->endTime=microtime(true);
}
/**
* 计算程序执行时间
* @return 返回程序执行的毫秒数
*/
public function getExecuteTime()
{
return $this->endTime - $this->startTime;
}
}
快捷网上订餐系统
快捷网上订餐系统是一款基于互联网与移动互联网订餐服务预订系统,目前系统主要定位于细分餐饮市场,跟随互联网潮流抓住用户消费入口新趋势,真正将 商家 与用户连接起来,让商家为用户提供优质服务与消费体验。快捷网上订餐系统中的快字不仅体现在程序运行的速度上快,更在用户操作体验上让用户更好更快的找到自己需要,完成预定,为用户节省时间,是的我们只是一款服务软件,已经告别了从前整个网站充满了对用户没有价值的新闻
下载
3. [代码]测试
setStartTime();
for( $i = 0; $i < 10000; $i++)
{
echo $i."";
}
$executeTime->setEndTime();
echo $executeTime->getExecuteTime()."";
?>
4. [文件] test.php ~ 296B
setStartTime();
for( $i = 0; $i < 10000; $i++)
{
echo $i."";
}
$executeTime->setEndTime();
echo $executeTime->getExecuteTime()."";
?>