Although the .NET Framework provides usage of performance counters under the System.Diagnosticsnamespace,
for some reason, documentation on it does little cover using performance counters for average duration per execution. When starting using PerformanceCounterType.AverageTimer32,
performance monitor did not show the expected results.
I started to dig into CodeProject and
some newsgroups, and found many articles covering the same problem. After I found the solution, I started to write an article, which introduces using performance counters in .NET and especially how to use AverageTimer32 performance
counter. So here it is!
Performance Counter Helper makes it easier for developers to develop applications that use Performance Counter to monitor
the health of the application. You will no longer have think how to log into Perfmon. It's developed in C#.
Using this library will let you add some custom counters into your perfmon, giving your applications the ability to inform
its health and how it is doing its work.