Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. var processorUsageCounter = new PerformanceCounter("Process", "% Processor Time", processName);
  2. var processorUserTimeCounter = new PerformanceCounter("Processor", "% User Time", "_Total")
  3. var cpuUsage = processorUsageCounter * processorUserTimeCounter ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement