Trying to take the following output (listed below) from a PS script and create another output file stating the time it took for each step to complete. Time is in format of day:hr:min:sec
Current output:
[Cpu 1] at [Step 1] completed at 120:15:12:15
[Cpu 1] at [Step 2] completed at 120:15:17:18
[Cpu 1] at [Step 3] completed at 120:16:37:13
Since Step 2 finished at 120:15:17:18, the total time would be found by 120:15:17:18 - 120:15:12:15. Step 3 finished at 120:16:37:13, so the total time would be found by 120:16:37:13 - 120:15:17:18.
Desired output:
'Step 2 took xx:xx:xx:xx to complete'
'Step 3 took xx:xx:xx:xx to complete'