advanced code snippet search
ibomb on 04/29/08
php time script execution
3 people have marked this snippet as a favorite
<?php $start = (float) array_sum(explode(' ',microtime())); // put you code that wanted to render at here $end = (float) array_sum(explode(' ',microtime())); echo "Processing time: ". sprintf("%.4f", ($end-$start))." seconds"; ?>
Report this snippet
very useful bit of code!
You need to login to post a comment.