I just want to display the values of this process on my windows app form using C#
I tried this using PerformanCounter class but I can't figure it out.
var perfCounter = new PerformanceCounter("Network Interface", "Bytes Received/sec", "chrome");
// Initialize to start capturing
perfCounter.NextValue();
for (int i = 0; i < 20; i++)
{
// give some time to accumulate data
Thread.Sleep(1000);
float receive = perfCounter.NextValue() / Environment.ProcessorCount;
Console.WriteLine("Bytes Receive/sec: " + receive);
}