• 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: Displaying time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying time


  • Subject: Re: Displaying time
  • From: Graham Cox <email@hidden>
  • Date: Sat, 23 Aug 2008 00:15:11 +1000


On 23 Aug 2008, at 12:04 am, Negm-Awad Amin wrote:

This is what a analog PLL do, when it loads/unloads a ramp.


Analogue PLL design (Audio to GHz RF) were my bread-and-butter for many years, so do be careful not to teach your granny to suck eggs here ;-)

If the system is busy, every timer-based solution will fail, because the timer does not guarante nothing of none.

So you're stuffed in any case then, since the only other way is to poll for a time change and there's no guarantee your main event loop will be run in a timely fashion either. Timers are in the event loop, so it's as broad as it's long... Since the OP wants to display time to 1 second resolution *on screen*, you are clearly not talking about wanting this to be very precise. You'll be capped at 16mS anyway. A timer running at a few hertz is simple, if not perfect nor scalable to a real-time OS.


Graham
_______________________________________________

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


  • Follow-Ups:
    • Re: Displaying time
      • From: Negm-Awad Amin <email@hidden>
References: 
 >Re: Displaying time (From: Gregory Weston <email@hidden>)
 >Re: Displaying time (From: Ron Fleckner <email@hidden>)
 >Re: Displaying time (From: Graham Cox <email@hidden>)
 >Re: Displaying time (From: Negm-Awad Amin <email@hidden>)
 >Re: Displaying time (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Displaying time
  • Next by Date: Re: Displaying time
  • Previous by thread: Re: Displaying time
  • Next by thread: Re: Displaying time
  • Index(es):
    • Date
    • Thread