PerformanceCounter PC = new PerformanceCounter("Processor", "% Processor Time", "_Total");声明这句的时候一直提示我 输入字符串的格式不正确。 以下是导出的Exception:
System.FormatException: 输入字符串的格式不正确。
   在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   在 System.Int32.Parse(String s, IFormatProvider provider)
   在 System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
   在 System.Diagnostics.PerformanceCounterLib.get_NameTable()
   在 System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
   在 System.Diagnostics.PerformanceCounterLib.CounterExists(String category, String counter, Boolean& categoryExists)
   在 System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
   在 System.Diagnostics.PerformanceCounter.Initialize()
   在 System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
   在 System.Diagnostics.PerformanceCounter..ctor(String categoryName, String coun)