Re: [linux-audio-dev] best method for timing

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] best method for timing
From: xk (xk_AT_myrealbox.com)
Date: Wed Apr 17 2002 - 07:00:12 EEST


> I think he meant using it for measuring the time between calls,
> in unixes we have gettimeofday for this, but in windows there isnt really
any way to do it, since there's no way to get high res timing beyond 10ms.

Actually there is (QueryHighPerformanceCounter). It's accuracy it's better
that 1 ms. But my code it's faster and more accurate.

You can use it as a timer if you poll it constantly from a thread. This
technique was widely used on Windows (althrough with probably another timer,
like GetTickCount) for low latency DirectSound apps before the new driver
model WDM.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Apr 17 2002 - 06:49:50 EEST