我有以下类,它返回IIS每秒的当前请求数。我每分钟调用RefreshCounters以保持每秒请求数刷新(因为它是平均值,如果我将它保留太久,旧值会影响结果太多)......当我需要显示当前RequestsPerSecond时,我调用该属性。publicclassCounters{privatestaticPerformanceCounterpcReqsPerSec;privateconststringcounterKey="Requests_Sec";publicstaticobjectRequestsPerSecond{get{lock(counterKey){if(pcReqsP