WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

CPU

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Determine Clock Speed

Keywords: computer clock speed MHz   megahertz 

Question:

I'm trying to find a way to determine the clock speed of a computer from a batch process. Know of ANY way to accomplish this?

Answer:

See the Cpu Extender function cCpuSpeed(int).
AddExtender("WWCPU34I.DLL")

e0 = cCpuSpeed(0)

Message("CPU Speed 0 (normalized clock freq) returns", e0)

e1 = cCpuSpeed(1)

Message("CPU Speed 1 (calculated freq) returns", e1)

e2 = cCpuSpeed(2)

Message("CPU Speed 2 (microseconds elapsed -- clock ticks) returns", e2)

e3 = cCpuSpeed(3)

Message("CPU Speed 3 (number of clock cycles) returns", e3)

Article ID:   W13868
Filename:   Get Clock Speed.txt
File Created: 2017:07:28:12:58:28
Last Updated: 2001:01:09:11:28:52