Finding CPU time in Windows from the command line

I want to find the processor time (as shown in the task manager) using the command line script. I used typeperf to get% Utilization, but I'm not sure how to get the CPU time, not%. One option that I can think of is to find out the total process time, and then use% to find out the processor time, but again the next question: how to find the total uptime for the process.

Any help / pointers would be appreciated.

Thanks Ashutosh

+4
source share
1 answer

tasklist will print CPU time if called with the /v option.

pslist from SysInternals displays the default processor time.

+6
source

Source: https://habr.com/ru/post/1334503/


All Articles