Re: Displaying time
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