Home  • Programming • PHP

Count Script Execution Time - Benchmark

$execution_time = microtime(); # Start counting

// Your code

$execution_time = microtime() - $execution_time;
$execution_time = sprintf('It took %.5f sec', $execution_time);

Comments 0


Copyright © 2025. Powered by Intellect Software Ltd