Re: Time since Login?
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