PerformanceCounterType.NumberOfItems32计算最后一分钟

时间:2013-01-01 12:55:27

标签: c# .net wmi system.diagnostics

如何计算最后一分钟的总增量?

        //Create Counter
        CounterCreationDataCollection counter = new CounterCreationDataCollection();

        CounterCreationData total = new CounterCreationData();
        total.CounterName = "totalOps";
        total.CounterType = PerformanceCounterType.NumberOfItems32;
        counter.Add(total);

0 个答案:

没有答案
相关问题