Accuracy/Reliability of NSTimer?
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.