Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

How to get a CPU speed using a Windows API

Posted on 1998-02-25
6
Medium Priority
?
616 Views
Last Modified: 2012-05-04
How to get a CPU speed using a Windows API
I'm interested in MHZ value, NOT in processor type (386, 486, Pentium etc.)
0
Comment
Question by:tbbrhun
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:anthonyc
ID: 1457913
Processor Speed (MHZ) or CPU Make (486, Pentium, Etc?)

I can get the CPU mae for you but I am not sure the MHZ is possible
0
 

Author Comment

by:tbbrhun
ID: 1457914
Edited text of question
0
 
LVL 2

Expert Comment

by:Veroland
ID: 1457915
Write a benchmark app.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 39

Accepted Solution

by:
abel earned 400 total points
ID: 1457916
I have a DLL of Intel (from the program CPUINFO) which does the trick. You only have to call the function in that DLL to get extended processor information. The function for the processor speed is very accurate (but of course uses a loop since you can't find that info on the chip itself...). I have the code for you in C and I can post that if you want, but it might be easier to download it yourself (full sourcecode, samples executables and dll's in one) at:

http://developer.intel.com/design/perftool/cpuid/

It's very easy to use. Look it up, try the executable coming with it if it fits your needs and try calling the dll's. The full documentation of the functions in the dll's is in the package as well. Don't bother about having to ship yet another dll with your app, it's only 20kb. And if you would want to incorporate it in your executable you can use the accompanying source code (be warned: assembler and C!).

Hope this helps you out.

Regards, Abel
0
 

Author Comment

by:tbbrhun
ID: 1457917
no comments, just THANKS A LOT, ABEL
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1457918
Bought This Question.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question