首页 > 开发 > PHP > 正文

PHP计时类的例子

2024-05-04 22:58:20
字体:
来源:转载
供稿:网友

一个例子
<?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
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表