• 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: Greg Guerin <email@hidden>
  • Date: Wed, 22 Apr 2009 11:15:32 -0700

Trygve Inda wrote:

(b) elapsed time since startup


Boot-time is available from sysctl, name "kern.boottime". There's also a function, whose name I forget, that returns microseconds since startup. I wouldn't be surprised if there were additional ways to get this info.


My goal is to delay some intense processing until the system is fully up and
running as it seems to do a lot of housekeeping at startup. Is there also a
way to determine some sort of overall system activity?


If the user has started your program to do something, then why is your program trying to second-guess the OS's scheduler? Maybe you should rely on the scheduler to allocate resources, instead of second- guessing what a suitable level of inactivity is.


It may be enough for me if I can just delay a few things until 1 minute
after login.


What is this for: A user-launched app? An auto-launched app? A daemon/agent?

Again, is the user expecting your program to do something immediately, or is the user aware that the action may be delayed?

  -- GG

_______________________________________________

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: Scott Ribe <email@hidden>
  • Prev by Date: Re: NSApplication, AppleEvent and CFRunLoop source strange interaction
  • Next by Date: Re: How to make app login window to look like OS X user login window ?
  • Previous by thread: Re: Time since Login?
  • Next by thread: Re: Time since Login?
  • Index(es):
    • Date
    • Thread