I know how to monitor a process. Commands like
top and so forth can monitor the CPU time and memory usage for a given process instance.
But say I expect a given executable to be run several times in the next hour, and I want to measure how many times it is run and the CPU time it has consumed. What's a command for that?