New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Just get the clock time before and after the code and subtract it to get the execution time
Know more about it here👇
https://www.google.com/amp/s/www.geeksforgeeks.org/measuring-script-execution-time-in-php/amp/