Added some methods to get some CPU Informations

This commit is contained in:
netbenixcn 2020-06-03 08:51:12 +02:00
parent c55e7551b2
commit e9b8368830
5 changed files with 85 additions and 4 deletions

View file

@ -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();