I need some information regarding starting and stopping a timer in PHP. I need to measure the elapsed time from the start of my .exe program (I'm using
exec() function in my php script) until it completes the execution and display the time it took in seconds.
How can I do this?
You can use
microtimeand calculate the difference:
Here's the PHP docs for