Monday, June 28, 2010

How to time code execution in PHP


$time_start = microtime(true);   
$time_end = microtime(true);
$time = $time_end - $time_start;




//code to time here


echo "go asset options & percentages in $time seconds\n";   

No comments:

Post a Comment