CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1

    WINAPI to get cpu speed?

    Besides grabbing the information from the registry, is there a simple winapi method I can invoke to get the cpu speed.
    -- Brandon Fogerty
    Http://www.brandonfogerty.com

    "Not believing doesn't make something not true"
    May GOD Bless, Strengthen, Guide, Protect, and Reveal Wisdom to you Always!

  2. #2
    Join Date
    Dec 2003
    Location
    Syracuse, NY
    Posts
    400

    Re: WINAPI to get cpu speed?

    There isn't a Windows function you can just call to my knowledge, but this should help:
    CPU Speed
    You use a high resolution counter to count some cycles, I read this same way in a book, I think it was "Game Coding Complete" but not sure.
    "Windows programming is like going to the dentist: You know it's good for you, but no one likes doing it."
    - Andre LaMothe

    DLL For Beginners(UPDATED)
    Please use CODE tags
    Rate me if I've helped.

  3. #3
    Join Date
    Jan 2008
    Posts
    48

    Re: WINAPI to get cpu speed?

    You could imagine that you're the 256 000th to ask that. for decades
    Then it's of course a Win32 FAQ for 18 years (news://comp.os.ms-windows.programmer.win32)
    cpuid, WMI, etc...

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

Featured