PHP debug用,印出各行之間執行時間
<?php
$pm_time = microtime(true);
echo "[pass time(".__LINE__.")]: ". number_format(microtime(true) - $pm_time, '4') ."<br>\n"; $pm_time = microtime(true);
echo "[pass time(".__LINE__.")]: ". number_format(microtime(true) - $pm_time, '4') ."<br>\n"; $pm_time = microtime(true);
echo "[pass time(".__LINE__.")]: ". number_format(microtime(true) - $pm_time, '4') ."<br>\n"; $pm_time = microtime(true);
...
...
留言
張貼留言