Re: timers
Re: timers
- Subject: Re: timers
- From: James McCartney <email@hidden>
- Date: Mon, 13 Aug 2001 07:52:37 -0500
on 8/13/01 3:23 AM, Markus at email@hidden wrote:
>
>
Am Montag, 13. August 2001 um 05:41 schrieb James McCartney:
>
>
> But what should you use to fire off a function at a certain time?
>
>
NSTimer does this easily. Drawback is, it fires from within the Run
>
Loop, which leads to poor resolution if you do heavy calculations in the
>
main thread (but this should be avoided anyway).
How does NSTimer compare with Time Manager or usleep for latency,
resolution? Or perhaps pthread_cond_wait? (it's the only thing I can find
using struct timespec - no nanosleep() call in OSX ?)
--- james mccartney email@hidden <
http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the PowerMac.
<
ftp://www.audiosynth.com/pub/updates/SC2.2.10.sea.hqx>
References: | |
| >Re: timers (From: Markus <email@hidden>) |