On Jun 19, 2017, at 20:04 , Gerriet M. Denkmann <gerri...@icloud.com> wrote:
> 
> What is the most efficient (energy-wise) way to do this:
> 
> NSTimer (with tolerance)
> NSRunLoop     performSelector:target:argument:order:modes:
> NSObject              performSelector:withObject:afterDelay:
> GCD           dispatch_after

I don’t think it really matters, compared to waste of energy that polling for 
an extended period (with a timer) implies. The tolerance isn’t going to help 
you here, because it’s for coalescing things that (say) happen when the display 
wakes or radios turn on or network interfaces activate — things that take 
longer than 0.1 seconds to finish, usually.

_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to