• 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
Accuracy/Reliability of NSTimer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accuracy/Reliability of NSTimer?


  • Subject: Accuracy/Reliability of NSTimer?
  • From: Jim Vanaria <email@hidden>
  • Date: Wed, 16 Oct 2002 15:30:17 -0500

Hello,

I am working on a MIDI program where I need an action to fire at a specific time (not MIDI notes/sends, I'm using coreMIDI for that), but I have read that NSTimer can "drift" from it's repeated firing frequency.

Meaning, am I guaranteed that if I ask NSTimer to fire every 0.5 seconds, will I get a firing at [exactly!] time [0, 0.5, 1, 1.5, 2, ...] (as opposed to, say: [0, 0.5, 1.01, 1.51, 2.03]) seconds? I'm not concerned with the *resolution* of the timer, just its consistency (reliability?). Obviously, drift wouldn't have much affect for times near time-zero, but will certainly be "off-beat" as time passes (time = 10mins and later).

Thanks in advance for help..

-Jim
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Accuracy/Reliability of NSTimer?
      • From: Kurt Revis <email@hidden>
  • Prev by Date: 3D Audio Unit -- it *seemed* simple!
  • Next by Date: 3D Audio Unit Questions #2
  • Previous by thread: 3D Audio Unit -- it *seemed* simple!
  • Next by thread: Re: Accuracy/Reliability of NSTimer?
  • Index(es):
    • Date
    • Thread