• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Time since Login?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Time since Login?
      • From: Dave DeLong <email@hidden>
References: 
 >Time since Login? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: How to make app login window to look like OS X user login window ?
  • Next by Date: Re: Drag and drop display image and file path?
  • Previous by thread: Re: Time since Login?
  • Next by thread: Re: Time since Login?
  • Index(es):
    • Date
    • Thread