site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jun 20, 2008, at 12:56 AM, Jean-luc Chasseriau wrote: Welcome. sysctl maybe? $ sysctl -a|grep frequency kern.exec: unknown type returned hw.busfrequency = 1000000000 hw.cpufrequency = 2000000000 hw.tbfrequency = 33332472 hw.tbfrequency: 33332472 hw.cpufrequency_max: 2000000000 hw.cpufrequency_min: 2000000000 hw.cpufrequency: 2000000000 hw.busfrequency_max: 1000000000 hw.busfrequency_min: 1000000000 hw.busfrequency: 1000000000 Perhaps: uint32_t freq; size_t size = sizeof(freq); sysctlbyname( "hw.cpufrequency", &freq, &size, NULL, NULL ); -- Steve Checkoway "Anyone who says that the solution is to educate the users hasn't ever met an actual user." -- Bruce Schneier _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com I'm please to be a new member of darwin-dev so here is the first question :) I would like to retrieve the current cpu frequency of each cpu/core installed (this frequency can change depending on the use -thanks to the intel speedstep technology-). Does anyone know which system call should be use to do so? smime.p7s
participants (1)
-
Steve Checkoway