CPU1 C# CPU사용율 알아내기 private ManagementPath cpuPath = null; private ManagementObject cpuObject = null; private ManagementScope scope = null; private ulong oldCpuValue, oldNanoValue; public void SetWMIObject() { this.cpuPath = new ManagementPath(); this.cpuPath.RelativePath = "Win32_PerfRawData_PerfOS_Processor.Name='_Total'"; this.cpuObject = new ManagementObject(this.scope, cpuPath, null); } public decimal ObtainCp.. 2009. 3. 19. 이전 1 다음