开发者

Finding CPU time on Windows from command line

I want to find the CPU time (as shown through Task manager) using Command line script. I have used typeperf to get the % Utilization but, I am not sure how to go about getting the CPU time and not the %. One option that I can think of is finding out the total uptime of the process and then use the % to find out the CPU Time - but again the next question is how does one find the total uptime for a process.

Any help/ pointers would be appreciated.

开发者_如何学PythonThanks, Ashutosh


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

pslist from SysInternals outputs CPU time per default.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜