[Libav-user] Best way to create a fractional ms timer?
René J.V. Bertin
rjvbertin at gmail.com
Mon Apr 1 11:57:21 CEST 2013
On 1 April 2013 10:45, Mike Versteeg <mike at mikeversteeg.com> wrote:
> Thanks John. As I said this is more prone to jitter than a timer event.
> I've also remember to change the priority but oddly enough, at least on W7,
> it makes no difference: I still get the occasional (exact) 10 ms delay,
> which almost never happens when using a timer.
I presume MS Windows still doesn't provide timers with <1ms resolution, be
it event-based or something like usleep/nanosleep? I haven't seen your
original post, but I've already struggled myself to get reliable 1kHz
realtime behaviour without external hardware. I ended up with a busy-wait
loop, (hogging the CPU was acceptable in my case).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user