当前位置:首页> PHP教程> php基础
关键字
文章内容
PHP计时类的例子
 
 
修改时间:[2009/01/05 17:31]    阅读次数:[914]    发表者:[起缘]
 
一个例子
<?php
include ("phptimer.inc");
$timer = new PHP_timer;
$timer->start();
$timer->addmarker("marker 1");
$timer->stop();
$timer->debug();
$timer->showtime();
?>
返回应该是这样子的。
Script execution debug information:
Marker Time Diff
Start 968594548.36899100 -
here be marker 1 968594548.36970100 0.000710
Stop 968594548.37014500 0.000444
0.001154
By phpfans.net收集整理