Re: Time since Login?
Re: Time since Login?
- Subject: Re: Time since Login?
- From: Uli Kusterer <email@hidden>
- Date: Wed, 22 Apr 2009 08:21:58 +0100
On 22.04.2009, at 04:43, Trygve Inda wrote:
Is there also a way to determine some sort of overall system activity?
There's Unix calls in the Kernel to do this, for instance
host_statistics() with the HOST_CPU_LOAD_INFO selector. They're a
little fiddly to use because everything you do in response to them can
change their value again, but you might find a heuristic that works.
We used them for some fun in one of our about screens, so I can't tell
you whether they're suitable for what you're doing, but it looked OK.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden