I'm new to objective-c, for an academic reason I need to read CPU speed and H.D.D rpm
What is the simplest way to access some system setting in objective-c or python
I can choose between objective-c and python for this project.
This can get the reported CPU speed for Windows 2000 and up by reading the registry using python:
import _winreg
key = _winreg.OpenKey(
_winreg.HKEY_LOCAL_MACHINE,
r"HARDWARE\DESCRIPTION\System\CentralProcessor\0")
value, type = _winreg.QueryValueEx(key, "~MHz")
print 'CPU speed is:', value
I don't know how to do it for other operating systems nor how to get the HDD rpms though.