I have a shell script with multiple commands and I want to run each command in background, so I put an & at the end of each command. I need to measure how much time execution of all the commands takes in total. How can I do that?
P.s. Commands might take minutes to run.