Answers for "php get time elapsed"

PHP
2

php get elapsed time

// microtime(true) returns the unix timestamp plus milliseconds as a float
$starttime = microtime(true);
/* do stuff here */
$endtime = microtime(true);
$timediff = $endtime - $starttime;
Posted by: Guest on March-22-2021

Browse Popular Code Answers by Language