Re: CPU load, time running ...
Re: CPU load, time running ...
- Subject: Re: CPU load, time running ...
- From: email@hidden
- Date: Wed, 30 Apr 2003 09:45:23 +0200
On mercredi, avril 30, 2003, at 01:41 AM, Lloyd Dupont wrote:
I try to get an average CPU load over a given period of time.
(typically 1 day)
and, also, the time since boot ....
I found the processor_set_statistics(..) function but I don't
understand the value in the
struct processor_set_load_info {
int task_count ;
int thread_count ;
integer_t load_average ;
integer_t mach_factor ;
};
the 'load_average' ? on which period of time ?
any others ideas ...
Yes.
Look for the source code of uptime in the Darwin Source Repository. It
will show you how to get the time from boot.
You can also use the sysctl kern.boottime
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.