There is code in
this article[
^] for reading performance counters.
The specific code it uses is:-
Imports System.Diagnostics
If PerformanceCounterCategory.InstanceExists( applicationInstanceName , "% Processor Time") Then
End If
I would recommend you do NOT use Thread.Sleep though...