PerformanceCounter.NextValue with static value of Performance Monitor

Hi !

I have one question about the documentation "PerformanceCounter.NextValue Method for .Net Framework 4.5".

In the remark note we have the following:

If the calculated value of a counter depends on two counter reads, the first read operation returns 0.0. Resetting the performance counter properties to specify a different counter is equivalent to creating a new performance counter, and the first read operation using the new properties returns 0.0. The recommended delay time between calls to the NextValue method is one second, to allow the counter to perform the next incremental read.

But i need the counter "Current Bandwith" of "Network Interface" category, and it is static, its value does not change. I need to do two readings NextValue for static counters?

Thanks!

January 13th, 2014 8:11am

Hi Rafael,

I think this thread is specific to Windows Performance forum. This form is to discuss problems about CLR development. So I am helping you to move this thread directly into that forum. Thank you for your understanding.

Best Regards,

Free Windows Admin Tool Kit Click here and download it now
January 14th, 2014 1:05am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics