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?