$execution_time = microtime(); // Start counting
// Your code
$execution_time = microtime() - $execution_time;
printf('It took %.5f sec', $execution_time);
翻译自: https://css-tricks.com/snippets/php/count-script-excecution-time/
$execution_time = microtime(); // Start counting
// Your code
$execution_time = microtime() - $execution_time;
printf('It took %.5f sec', $execution_time);
翻译自: https://css-tricks.com/snippets/php/count-script-excecution-time/