Guest User

Untitled

a guest
Jun 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Import Namespace System.Diagnostics
  2.  
  3. ' ...
  4. Dim cpu as New PerformanceCounter()
  5. With cpu
  6. .CategoryName = "Processor"
  7. .CounterName = "% Processor Time"
  8. .InstanceName = "_Total"
  9. End With
  10.  
  11. ' ...
  12. myLabel.Text = cpu.NextValue()
Add Comment
Please, Sign In to add comment