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 <cocoa...@xericdesign.com> > 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 (Cocoa-dev@lists.apple.com) > > 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: > > http://lists.apple.com/mailman/options/cocoa-dev/jeremyw.sherman%40gmail.com > > This email sent to jeremyw.sher...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com