There is a problem with the current version if several jobs have the same name, or if one job is run multiple times. Only the final runtime will be recorded. These values are also used in the final message, meaning the elapsed time could be very different to the actual time the script has taken to run,
Instead, this change keeps track of the total for each job name. So the scoreboard at the end shows the total for every run of a job with that name, and the elapsed time shows the total time across all jobs which ran.
There is a problem with the current version if several jobs have the same name, or if one job is run multiple times. Only the final runtime will be recorded. These values are also used in the final message, meaning the elapsed time could be very different to the actual time the script has taken to run,
Instead, this change keeps track of the total for each job name. So the scoreboard at the end shows the total for every run of a job with that name, and the elapsed time shows the total time across all jobs which ran.