How do I get the PC's Processor speed?
kyosohma at gmail.com
kyosohma at gmail.com
Tue Nov 6 16:14:58 EST 2007
On Nov 6, 3:02 pm, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
> > On the problem PCs, both of these methods give me the same information
> > (i.e. only the processor name). However, if I go to "System
> > Properties" and look at the "General" tab, it lists the CPU name and
> > processor speed. Does anyone else know of another way to get at this
> > information?
>
> I'm not sure whether it is *this* information, but you can use
> NtQuerySystemInformation, with a class parameter of
> SystemProcessorPowerInformation, and passing
> SYSTEM_PROCESSOR_POWER_INFORMATION as the buffer. That gives,
> among others, a value CurrentFrequency (along with LastBusyFrequency,
> LastC3Frequency, and ThermalLimitFrequency).
>
> This usage of NtQuerySystemInformation is undocumented.
>
> Regards,
> Martn
Is this a WMI function or a PyWin32 function? I guess I'm not seeing
how to actually implement this in Python. Sounds intriguing though.
Mike
More information about the Python-list
mailing list