Can anyone help me out on getting just the system cpu usage value for use in a gui application.
Thanks
Can anyone help me out on getting just the system cpu usage value for use in a gui application.
Thanks
I believe you need to use the host_processor_info call, but unfortunately there's little to no documentation out there. (Unfortunately, there's no nice Cocoa library for such things.)
As such, you might want to take a look at the source code for CPU Usage by Peter Hosey and see how he's solved the problem.