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

Thread: CPU speed

  1. #1
    Guest

    CPU speed

    hi,

    Have everyone a c++ code to caculate the CPU speed ?

    Thanks.


  2. #2
    Join Date
    May 1999
    Location
    Germany
    Posts
    10

    Re: CPU speed

    There is no need to calculate it (at least with NT, Win95/98 I don't know). See Registry
    HKEY_LOCAL_MACHINE / HARDWARE / DESCRIPTION / System / CentralProcessor / ~MHz.
    Good Luck - Ralf


  3. #3
    Guest

    Re: CPU speed

    Thanks Ralf,
    But with win 95 or win 98 , this information isn't in HKEY_LOCAL_MACHINE / HARDWARE / DESCRIPTION / System / CentralProcessor / ~MHz.
    I want to caculate this.


  4. #4
    Join Date
    Apr 1999
    Location
    Finland
    Posts
    68

    Re: CPU speed

    You can find sample codes from the home pages of the processor manufacturers (www.intel.com, www.amd.com, ...), they are (mostly) in assembly though.


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