php 计算执行时间
计算执行时间 [代码片段(13行)]
//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 为数字增加 st\nd\rd 等
精彩图集
精彩文章