How can i calculate runtime of the function in php like rand() & mt_rand()? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i calculate runtime of the function in php like rand() & mt_rand()?

calculate runtime of the function

18th May 2018, 10:25 PM
Ahad Bayat
Ahad Bayat - avatar
2 Answers
+ 3
haaa thats quite difficult since php will only display an output after everythings processed.There might be a way to do it during execution time
18th May 2018, 10:45 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
i think can i do it with microtime() function..... ?????
19th May 2018, 9:38 AM
Ahad Bayat
Ahad Bayat - avatar