I am working on console (zsh) and running the same program (phpunit).
How to count the number of executions and total execution time per day?
alias phpunit='write_metrics phpunit'
# running several times
phpunit
phpunit
phpunit
read_metrics today
Output:
Executions: 100
Time: 1 hour