Count Script Execution Time

Submitted by:Jhon Smith

Date added:03 March, 2011

Category:PHP

Count Script Execution Time

Tags: php snippet , count script execution time , php execution time

Code Snippet:

$execution_time = microtime(); 
# Start counting
# Your code
$execution_time = microtime() - $execution_time;
$execution_time = sprintf('It took %.5f sec', $execution_time);
 
 

Comments