DosEstimateFreqCPU Function: Difference between revisions
Appearance
	
	
|  Created page with "For more information visit DosEstimateFreqCPU.  ==Description== Estimates clock frequency of all available CPUs.   ==Syntax== <PRE> #define INCL_BASE #include <os2.h> #inc..." | mNo edit summary | ||
| Line 1: | Line 1: | ||
| For more information visit [[DosEstimateFreqCPU]] | Estimates clock frequency of all available CPUs. For more information visit [[DosEstimateFreqCPU]]. | ||
| ==Syntax== | ==Syntax== | ||
| Line 14: | Line 11: | ||
| ==Parameters== | ==Parameters== | ||
| ;  | ;pxCPUFrequency (PCPUFREQUENCY) - output : Pointer to structure that estimated clock frequencies will be set to.   | ||
| ==Return Code== | ==Return Code== | ||
| ; ulrc (APIRET) - return : Return codes. | ; ulrc (APIRET) - return : Return codes. | ||
| :!NO_ERROR Error. | |||
| :NO_ERROR Successful completion. | |||
| ==Remarks== | ==Remarks== | ||
| Line 35: | Line 28: | ||
| } CPUFREQUENCY, * PCPUFREQUENCY; | } CPUFREQUENCY, * PCPUFREQUENCY; | ||
| </PRE> | </PRE> | ||
Revision as of 21:42, 18 January 2017
Estimates clock frequency of all available CPUs. For more information visit DosEstimateFreqCPU.
Syntax
#define INCL_BASE #include <os2.h> #include "FREQCPU.h" APIRET ulrc = DosEstimateFreqCPU(PCPUFREQUENCY pxCPUFrequency);
Parameters
- pxCPUFrequency (PCPUFREQUENCY) - output
- Pointer to structure that estimated clock frequencies will be set to.
Return Code
- ulrc (APIRET) - return
- Return codes.
- !NO_ERROR Error.
- NO_ERROR Successful completion.
Remarks
This function estimates clock frequency of all available CPUs. Obtained frequency will be set to CPUFREQUENCY structure:
/* CPU frequency information structure */
typedef struct _CPUFREQUENCY
{
    ULONG ulNumCPUs;            /* # of available CPUs */
    FIXED afxFrequencyMHz[64];  /* frequency of each CPUs in FIXED MHz (65536 means 1.0) */
} CPUFREQUENCY, * PCPUFREQUENCY;