I agree that 500usec is too coarse for many applications, but I think we
agree that simply having a finer resolution would be sufficient. I find
it annoying that QNX6 has a more coarse resolution than QNX4.
-----Original Message-----
From: martijn sipkema [mailto:m.j.w.sipkema@student.tudelft.nl]
Posted At: Wednesday, September 05, 2001 1:10 PM
Posted To: os
Conversation: high accuracy timing
Subject: Re: high accuracy timing
i’m not a native english speaker so perhaps it’s quantising or
quantizing, i am not sure. what i meant with that is that the
value of time is rounded to some, in this case the clock tick,
value. in midi it also means rounding to some clock. i know
that every integer timer value is ‘discreet’ in that it rounds to
some value, but i believe that 1ms or even 500 microseconds
is a somewhat too large value. what qnx probably needs is
a media subsystem such as openml, with support for midi
added. a common timebase for all media applications that
is not adjusted, i.e. dependant on the utc time.
for accurate timestamping the clock tick is not accurate enough
imo and there isn’t a convenient accurate alternative that also
allows sleeping on and that doesn’t depend on the cpu.
i have been looking into openml and this seems to be a good
way to go. industry standard. supported by large companies.
openml for qnx would be a dream come true :^)
–martijn
Rennie Allen <RAllen@csical.com> wrote in message
news:64F00D816A85D51198390050046F80C9AC96@exchangecal.hq.csical.com…
What is quantising ? From a technical perspective that is. I did a
google on “quantising”, and I got a lot of MIDI/artsy stuff about
having
a “groove” (I am a drummer so I know what they’re talking about, but I
want to know what you mean when you use this term - since we are
discussing timing functions not “grooving” > > .
Google also suggested that I search “quantizing” which I did, and I
got
a bunch of hits the same as above, and some hits regarding quantizing
noise in analog sampling (which again appears to have no relevance to
timer functions - other than when they are used to schedule analog
sampling).
I completely agree that “high” (I believe we agree on the semantics of
“high” and “low” wrt this conversation) accuracy “low” jitter timing
functions are required, my problem is understanding why simply
decreasing the granularity of the timer interrupt does not achieve
this,
in your opinion).
btw: dictionary.com has no entry for quantising, and 1 entry for
quantizing (the definition of which relates to the field of quantum
mechanics), so it appears that your usage is a MIDI colloquialism with
which I am not familiar.
-----Original Message-----
From: martijn sipkema [mailto:> m.j.w.sipkema@student.tudelft.nl> ]
Posted At: Wednesday, September 05, 2001 12:06 AM
Posted To: os
Conversation: high accuracy timing
Subject: Re: high accuracy timing
what i would like is to be able to get some time that is microsecond
accurate
and to be able to sleep on such times without the quantising. this is
what
beos does.
or what would be nice is to have a ust as irix has it for its media
libraries.
it is however necessary imho to have accurate timestamping and
scheduling of events for audio/video/midi. with a 1ms timer tick that
would still leave you with 500 microseconds jitter.
–martijn
Armin Steinhoff <a-steinhoff@web._de> wrote in message
news:3B954909.266B0CFB@web._de…
martijn sipkema wrote:
Portable between which? CPU versions of QNX? You could always
just
make the timer a DLL that you load @ runtime. That way on new
platforms
of any sort the timer could be tuned to the system.
easy to port for different cpu version of qnx at the least. that’s
why i
find it hard to believe that there is no function giving better
than
scheduler quantum
timing on a sleep.
There is no ‘scheduler quantum’, but there is a time resolution
defined the timer tick.
Please see: > http://qdn.qnx.com/articles/oct2300/quantization.html
The RTC approach is portable in the sense that every thing is
portable > > … but you mean
probably source code compatibility between differend CPUs.
IMHO … that’s not possible because the SW (e.g. BIOS, if there is
one) and HW resources (CHIP sets) are very different.
Armin