Re: Time since Login?
Re: Time since Login?
- Subject: Re: Time since Login?
- From: Dave DeLong <email@hidden>
- Date: Wed, 22 Apr 2009 07:27:16 -0600
There's also the "w" command that you could run in an NSTask.
Dave
On Apr 22, 2009, at 1:21 AM, Uli Kusterer wrote:
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
_______________________________________________
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