Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Import Namespace System.Diagnostics
- ' ...
- Dim cpu as New PerformanceCounter()
- With cpu
- .CategoryName = "Processor"
- .CounterName = "% Processor Time"
- .InstanceName = "_Total"
- End With
- ' ...
- myLabel.Text = cpu.NextValue()
Add Comment
Please, Sign In to add comment