• 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: "Jeremy W. Sherman" <email@hidden>
  • Date: Wed, 22 Apr 2009 00:00:15 -0400

How about just nice(1)-ing the process doing the intense processing to be
lower-priority, and letting the scheduler sort it all out?

If you really want to try and schedule yourself, you can check out how
uptime does it in the Darwin sourcecode and do it that way. Running nm on
uptime will point you to getloadavg(3) to find out how much work is going on
and sysctl(3) to get the kern.boottime.

—Jeremy

2009/4/21 Trygve Inda <email@hidden>

> How can I get:
>
> (a) elapsed time since login
>
> (b) elapsed time since startup
>
> ??
>
> 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?
>
> It may be enough for me if I can just delay a few things until 1 minute
> after login.
>
> Thanks,
>
> Trygve
>
>
> _______________________________________________
>
> 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

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

  • Prev by Date: Re: code behind NSRunAlertPanel
  • Next by Date: Re: MDItemCopyAttribute and kMDItemFinderComment
  • Previous by thread: Time since Login?
  • Next by thread: Re: Time since Login?
  • Index(es):
    • Date
    • Thread