Php代码耗时查询

来源:互联网 发布:阿里巴巴农村淘宝图片 编辑:程序博客网 时间:2024/05/16 14:43

Php代码耗时查询

$t1 = microtime(true);//
 ... 执行代码 ...
$t2 = microtime(true);
echo '耗时'.round($t2-$t1,3).'秒';

0 0