CPU percentage per process.

I am writing a program in vb.net and I need to get the CPU percentage of a particular process, the window task manager seems to get this. I need to monitor this process so that I can kill rogue processors.  The closest I have come is using WMI Win32_PerfFormattedData_PerfOS_Processor class PercentProcessorTime but I only get 0 or 100.
2curiousXAsked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.