Hello,
How can I detect the processor string (For example: Intel Core i7) and the speed of it (For example: 2.66 GHz)?
Thanks,
How to detect processor string and speed?
Moderator:Moderators
-
- Posts:92
- Joined:Thu May 27, 2010 8:54 pm
- Location:Netherlands
Re: How to detect processor string and speed?
The Processor Brand string can be accessed by CPUID, using eax = 0x80000002, 0x80000003 and 0x80000004 in sequence
It's a 48 byte null-terminated string, returned in four byte sequences via eax, ebx, ecx and edx per call
For more information about CPUID, read the wikipedia article at http://en.wikipedia.org/wiki/CPUID
The processor speed has to be obtained by running a speed test. Methods vary, so you'll have to find something that suits your desired level of accuracy.
It's a 48 byte null-terminated string, returned in four byte sequences via eax, ebx, ecx and edx per call
For more information about CPUID, read the wikipedia article at http://en.wikipedia.org/wiki/CPUID
The processor speed has to be obtained by running a speed test. Methods vary, so you'll have to find something that suits your desired level of accuracy.
Re: How to detect processor string and speed?
I really didn't understand what you said.. Could you please post some kind of code explaining exactly what do you mean?
Re: How to detect processor string and speed?
What are you on about? halofreak1990 posted a link to wikipedia which explains, with code example, exactly how to do what you want.Could you please post some kind of code explaining exactly what do you mean?
~Andrew
