ITPub博客

首页 > IT职业 > IT职场 > php 计算页面执行时间

php 计算页面执行时间

IT职场 作者:emanda 时间:2021-09-09 09:19:22 0 删除 编辑

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

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

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


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1741/viewspace-2809465/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: MySQL常用语句
请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    208
  • 访问量
    2572