php 计算页面执行时间

  1. <?php  php

  2. $runtime_start = microtime(true); //程序开始处  ide

  3. $runtime_stop = microtime(true);  //程序结尾处  spa

  4. echo "耗时: ".round($runtime_stop-$runtime_start,6)." second(s)";  orm

相关文章
相关标签/搜索