Results 1 to 2 of 2

Thread: Performance Counters, might be easy

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Posts
    48

    Performance Counters, might be easy

    The Following is my code and i'm tryin to read the CPU usage. when i run this all i get is a bunch of zeros..

    Dim MyCounter As New PerformanceCounter
    MyCounter.CategoryName = "Processor"
    MyCounter.CounterName = "% Processor Time"
    MyCounter.InstanceName = "_Total"

    Debug.WriteLine(MyCounter.NextValue)

    I have tried everywhere...believe me...i tried to save the counter to a single data variable and then send it but still zeros...thanks in advance

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width