Time of a php script

<?php
$start = (float) array_sum(explode(' ',microtime()));
//..Script...
$end = (float) array_sum(explode(' ',microtime()));

echo "T: ". sprintf("%.4f", ($end-$start))." sec";
?>

Leave a Reply

Your email address will not be published. Required fields are marked *