Results 1 to 8 of 8

Thread: CPU Speed Code

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    San Jose
    Posts
    70

    Question 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


  2. #2
    Addicted Member bbosh's Avatar
    Join Date
    Oct 2000
    Location
    Hell (AKA New Mexico)
    Posts
    186
    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!

  3. #3
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    don't listen to the arby's hater! Write your own benchmarking utility or connect directly to the bois to get the clock speed.

  4. #4
    Addicted Member goudabuddha's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere cheesy
    Posts
    203
    Yes, I agree. Do not listen to he who hates Arby's. Write your own, it ain't rocket science.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    San Jose
    Posts
    70
    How????

  6. #6
    Addicted Member goudabuddha's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere cheesy
    Posts
    203
    By the way, I think numtel meant BIOS, not BOIS.

  7. #7
    Tygur
    Guest
    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..

  8. #8
    Lively Member FirstKnight's Avatar
    Join Date
    Jul 1999
    Location
    Johannesburg, South Africa
    Posts
    95
    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 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
  •  



Click Here to Expand Forum to Full Width