Returns the number of physical cores on the CPU at the specified index.
int32 GetCpuCores( int32 p_nIndex )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nIndex | The index of the CPU to query. |
auto BaseSystemInformation a_oBaseInfo;
auto StrList a_slMessages;
a_slMessages.AddBlank();
a_slMessages.Add( "CPU RAM: " + a_oBaseInfo.GetRam() + " MB" );
a_slMessages.Add( "CPU Count: " + a_oBaseInfo.GetCpuCount() );
for( int i = 0; i < a_oBaseInfo.GetCpuCount(); ++i )
{
a_slMessages.Add( "Cores: " + a_oBaseInfo.GetCpuCores( i ) );
a_slMessages.Add( "MHz: " + a_oBaseInfo.GetCpuMhz( i ) );
}
LibStrList.Out( a_slMessages );
CPU RAM: 16228 MB
CPU Count: 1
Cores: 6
MHz: 2208