脚本出处:http://www.oschina.net/code/snippet_113490_15631
这个不需要解释了吧,代码清单:
<?php
$runtime_start = microtime(true); //程序开始处
$runtime_stop = microtime(true); //程序结尾处
echo "耗时: ".round($runtime_stop-$runtime_start,6)." second(s)";
脚本出处:http://www.oschina.net/code/snippet_113490_15631
这个不需要解释了吧,代码清单:
<?php
$runtime_start = microtime(true); //程序开始处
$runtime_stop = microtime(true); //程序结尾处
echo "耗时: ".round($runtime_stop-$runtime_start,6)." second(s)";