3.
@王鸿杰[code]<?php
$START_TIME=microtime(true); //取毫秒级时间
……
$END_TIME=microtime(true);
echo round($END_TIME-$START_TIME,3).'秒';
4.
<?php
$START_TIME=microtime(true); //取毫秒级时间
……
$END_TIME=microtime(true);
echo round($END_TIME-$START_TIME,3).'秒';
7. <?php
//do something
sleep(3);
//do something
$running_time = time() - $_SERVER['REQUEST_TIME'];
echo '页面运行时间:',$running_time,' 秒';
?>