• 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: NSTimer or what?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTimer or what? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Cursor outside Rect without polling
  • Next by Date: Re: Embedded Collection View Controller scrolling issue
  • Previous by thread: NSTimer or what?
  • Next by thread: Re: NSTimer or what?
  • Index(es):
    • Date
    • Thread