//Create a variable for start time $time_start = microtime(true); // Place your PHP/HTML/JavaScript/CSS/Etc. Here //Create a variable for end time $time_end = microtime(true); //Subtract the two times to get seconds $time = $time_end - $time_start; echo 'Script took '.$time.' seconds to execute';
黄聪:php计算获取页面执行时间
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:黄聪:PHP获取MAC地址(转)
下一篇:黄聪:php自动生成密码
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
排查php页面的执行时间程序
排查php页面的执行时间程序
职场 休闲 排查 php页面 执行时间程序 -
php计算一个页面执行时间函数写法
/*//开始计时,放在头部$starttime
php程序 运行时间