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

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>


  • Follow-Ups:
    • Re: timers
      • From: Markus Hitter <email@hidden>
    • Re: timers
      • From: Doug Wyatt <email@hidden>
References: 
 >Re: timers (From: Markus <email@hidden>)

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