Thread: How do I discover the CPU Speed?

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    12

    How do I discover the CPU Speed?

    Hi, how do I discover the CPU speed (in MHz)?
    Thanks, Isaac.

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Start
    Run
    DxDiag.exe
    Enter
    The world is waiting. I must leave you now.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    12

    Yeah, but I need to send this info

    to my C program, possible?

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Ask your OS, via some suitable API
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If you are on Windows, then the info is available under the following registry subkey -

    Code:
    HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0
    I dont know if there's an API that gets this directly on windows......you would have to use the registry APIs to read this entry...there are examples on this board on how to do this

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions on multiple thread programming
    By lehe in forum C Programming
    Replies: 11
    Last Post: 03-27-2009, 07:44 AM
  2. Upgrading my old CPU (for another old one!)
    By foxman in forum Tech Board
    Replies: 16
    Last Post: 01-11-2008, 05:41 PM
  3. Flight Simulator Wind Speed!!
    By Dilmerv in forum C++ Programming
    Replies: 6
    Last Post: 03-20-2006, 12:40 AM
  4. CPU temp
    By PING in forum Tech Board
    Replies: 5
    Last Post: 01-28-2006, 06:25 AM
  5. getting maximum CPU speed
    By 13th Phazer in forum C++ Programming
    Replies: 14
    Last Post: 10-20-2004, 06:41 PM