Armin Dashti

Armin Dashti

  • NA
  • 45
  • 6.6k

How can i get network usage per process

Aug 11 2017 12:51 PM

I want to get network usage per process.
I've searched, but didn't find a good solution , for example to get the network usage of a messenger ,is my code is correct?

PerformanceCounter pc = new PerformanceCounter("Process", "IO Read Bytes/sec", "System" ); 
Console.WriteLine(pc.NextValue()); Console.ReadLine(); }

what can i do?


Answers (3)