I'm trying to use tasklist
to find out which process is consuming more than X percent of my CPU (to later kill it with taskkill
.)
How do I know what percent does a time format represents?
The documentations says:
TASKLIST options
/FI filter
And one filter may be:
CPUTIME eq, ne, gt, lt, ge, le CPU time in the format: hh:mm:ss.
hh - number of hours,
mm - minutes, ss - seconds
If I try
tasklist /FI "CPUTIME gt 00:00:10"
it works.
But if I
tasklist /FI "CPUTIME gt 90"
it doesn't.
How can I know that time format represent 90%? Or 80?
Edit:
Additional question: What's the relationship between CPU usage time and the CPU usage percent?