Added some methods to get some CPU Informations
This commit is contained in:
parent
c55e7551b2
commit
e9b8368830
5 changed files with 85 additions and 4 deletions
|
|
@ -1,6 +1,11 @@
|
|||
#ifndef _OS_INFO_H_
|
||||
#define _OS_INFO_H_
|
||||
|
||||
static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx);
|
||||
unsigned int getCPUStepping();
|
||||
unsigned int getCPUFamily();
|
||||
double getCPUClockSpeed();
|
||||
char* getCPUType();
|
||||
char* getOS();
|
||||
char* getArch();
|
||||
void print_Specs();
|
||||
|
|
|
|||
Reference in a new issue