Summary: Use Windows PowerShell to find the total CPU time of a process.
How can I return a timespan that represents the total CPU time of a process?
Use the Get-Process cmdlet and select the TotalProcessorTime property:
PS C:\> (gps excel).totalprocessortime
Days : 0
Hours : 0
Minutes : 0
Seconds : 4
Milliseconds : 524
Ticks : 45240290
TotalDays : 5.23614467592593E-05
TotalHours : 0.00125667472222222
TotalMinutes : 0.0754004833333333
TotalSeconds : 4.524029
TotalMilliseconds : 4524.029