My question is simple: I want to know how long the PHP script has been running. In addition, I execute it through cron. Now I could do something using the PHP code itself to get the start / end time, however I was wondering if there was anything with the cron command that I could add to get it by email in milliseconds?
I am currently using:
/usr/bin/php -q httpsdocs/folder/script.php > /dev/null 2>&1
Which launches my script and stops all errors / output messages sent to me by email. Can I modify the above to get the lead time for emailing me somehow?
thanks
source share