|
-
Apr 1st, 2004, 10:44 PM
#1
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|