calculate and print total  duration of all processes
documentation
documentation