-
CPU Speed Code
Hi All,
Does any one have, or know where I can get VB code to calculate the actual speed of a CPU.
I have been looking all over the place and have not found code that does this.
There are API calls to get all other information but not CPU speed.
What I am looking for is code that calculates the speed.
Any help will be greatly appreciated.
Thanks
:D
-
www.karenware.com has source to a program that, among other things, will give you lots of info on the cpu.
-
don't listen to the arby's hater! Write your own benchmarking utility or connect directly to the bois to get the clock speed.
-
Yes, I agree. Do not listen to he who hates Arby's. Write your own, it ain't rocket science.
-
-
By the way, I think numtel meant BIOS, not BOIS.
-
The program bbosh (The "Arby's Hater") referred to doesn't tell the actual speed of the cpu.
That's a better reason than that he doesn't like arby's..
-
1 Attachment(s)
I took the time to put togeteher a little dll for you to use. I include all the source code in c++ plus the original file which came from AMD. I tested it and it works. Just move the dll in Release directory to your system directory and use it as follow:
In a module add this statement:
Code:
Public Declare Function GetCpuSpeed Lib "cpuspeed.dll" () As Long
Use:
Code:
Dim lCpuSpeed as Long
lCpuSpeed = GetCpuSpeed
MsgBox lCpuSpeed
Enjoy!