php time how long a function takes

Solutions on MaxInterview for php time how long a function takes by the best coders in the world

showing results for - "php time how long a function takes"
Domenico
08 Oct 2019
1<?php
2$startTime = microtime(true);
3
4/*stuff is going on*/
5
6echo "Elapsed time is: ". (microtime(true) - $startTime) ." seconds";