[whatwg] Timing API proposal for measuring intervals
robert at ocallahan.org
Thu Jul 7 19:36:49 PDT 2011
I like it so far, module bikeshedding. (I might call it window.currentTime.)
One question is whether you allow the value to change while a script runs.
When using the value to schedule animations, it would be helpful for the
value to only change between stable states.
If you refer to this value during requestAnimationFrame, does it give you
the current time, or the predicted time at which the frame will render?
Using this value as a clock for media synchronization sounds appealing but
is complicated by audio clock drift. When you play N seconds of audio, it
might take slightly more or less time to actually play, so it's hard to keep
media times perfectly in sync with another timing source. Just something to
keep in mind.
"If we claim to be without sin, we deceive ourselves and the truth is not in
us. If we confess our sins, he is faithful and just and will forgive us our
sins and purify us from all unrighteousness. If we claim we have not sinned,
we make him out to be a liar and his word is not in us." [1 John 1:8-10]
More information about the whatwg