Re: NSTimer or what?
Re: NSTimer or what?
- Subject: Re: NSTimer or what?
- From: Quincey Morris <email@hidden>
- Date: Mon, 19 Jun 2017 20:54:49 -0700
On Jun 19, 2017, at 20:04 , Gerriet M. Denkmann <email@hidden> 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 (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