Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php time how long a function takes

<?php
$startTime = microtime(true);

/*stuff is going on*/

echo "Elapsed time is: ". (microtime(true) - $startTime) ." seconds";
 
PREVIOUS NEXT
Tagged: #php #time #long #function #takes
ADD COMMENT
Topic
Name
5+7 =