第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

如何獲得CPU溫度?

如何獲得CPU溫度?

長風(fēng)秋雁 2019-11-11 15:02:37
我需要為正在開發(fā)的應(yīng)用程序收集一些系統(tǒng)信息。使用C#可以輕松獲得可用內(nèi)存和CPU負(fù)載。不幸的是,CPU溫度并不是那么容易。我嘗試使用WMI,但無法使用任何東西Win32_TemperatureProbe要么MSAcpi_ThermalZoneTemperature有沒有人處理過這個(gè)問題?我想知道像SiSoftware Sandra這樣的監(jiān)視程序如何獲得該信息...以防萬一有人感興趣,下面是該類的代碼:public class SystemInformation{    private System.Diagnostics.PerformanceCounter m_memoryCounter;    private System.Diagnostics.PerformanceCounter m_CPUCounter;    public SystemInformation()    {        m_memoryCounter = new System.Diagnostics.PerformanceCounter();        m_memoryCounter.CategoryName = "Memory";        m_memoryCounter.CounterName = "Available MBytes";        m_CPUCounter = new System.Diagnostics.PerformanceCounter();        m_CPUCounter.CategoryName = "Processor";        m_CPUCounter.CounterName = "% Processor Time";        m_CPUCounter.InstanceName = "_Total";     }    public float GetAvailableMemory()    {        return m_memoryCounter.NextValue();    }    public float GetCPULoad()    {        return m_CPUCounter.NextValue();    }    public float GetCPUTemperature()    {        //...        return 0;    }}
查看完整描述

3 回答

  • 3 回答
  • 0 關(guān)注
  • 593 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)