total CPU time function

Sending the list of processes to the function will return the total time
the CPU will be in use, which is simply the sum of the durations.