CPU Usage in %

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mansi sharma
    New Member
    • Mar 2008
    • 22

    CPU Usage in %

    Can i know hoe to find the CPU Usage of individual Process in %.
    I found the following code thru the net-
    But I not getting it.
    Code:
    Private m_PerformanceCounter As New System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total")
    Dim cupcount As String = CInt(m_PerformanceCounter.NextValue()) & "%"
    Here m_PerformanceCo unter.NextValue () will gives the cpu usage percentage
    What we have to write in place of these
    1) Processor
    2)% Processor Time
    3)_Total
    Any help will be greatly Appreciated.
Working...