Esempio n. 1
0
    public List <CPU_info> get_cpu_info_list()
    {
        var cpu_list = new List <CPU_info>();

        for (int cpu_index = 0; cpu_index < pSDK.GetNumberOfProcessors(); cpu_index += 1)
        {
            var cpu = new CPU_info();
            cpu.name        = pSDK.GetProcessorName(cpu_index);
            cpu.code_name   = pSDK.GetProcessorCodeName(cpu_index);
            cpu.tdp         = pSDK.GetProcessorTDP(cpu_index);
            cpu.stock_clock = pSDK.GetProcessorStockClockFrequency(cpu_index);
            cpu_list.Add(cpu);
        }
        return(cpu_list);
    }