Search code examples
c#performanceperformancecountercounter

How can I access the C# performance counter in the code?


I want to use the performance counter output in my program. How can I access the performance counter in code without using the perfmon.exe. I want to create my own performance counter app.


Solution

  • This is exposed via the PerformanceCounter Class.