Jun 12th, 2001, 01:26 PM
#1
Thread Starter
Lively Member
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
Jun 12th, 2001, 01:29 PM
#2
Addicted Member
www.karenware.com has source to a program that, among other things, will give you lots of info on the cpu .
Brian
Programming: VB5 Pro (SP3) - QBasic 1.1,4.5
Internet: HTML 4, CSS, JavaScript
Visit
AltInt.com !
Jun 12th, 2001, 02:37 PM
#3
Frenzied Member
don't listen to the arby's hater! Write your own benchmarking utility or connect directly to the bois to get the clock speed .
Jun 12th, 2001, 02:40 PM
#4
Addicted Member
Yes, I agree. Do not listen to he who hates Arby's. Write your own, it ain't rocket science.
Jun 12th, 2001, 02:41 PM
#5
Thread Starter
Lively Member
Jun 12th, 2001, 02:41 PM
#6
Addicted Member
By the way, I think numtel meant BIOS, not BOIS.
Jun 12th, 2001, 03:40 PM
#7
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..
Jun 12th, 2001, 05:35 PM
#8
Lively Member
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!
Attached Files
Today is yesterday's tomorrow
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width