[Libav-user] Best way to create a fractional ms timer?

Александр Рухлов A.Rukhlov at gmail.com
Sun Mar 31 13:42:58 CEST 2013

timeBeginPeriod() + timeGetTime() +...+ Sleep() + timeEndPeriod()

2013/3/31 Mike Versteeg <mike at mikeversteeg.com>

> Thanks Alex. This is much like I do now (using Sleep()), but as I
> mentioned the problem with these one shot timer solutions is the event is
> easily interrupted giving me +/- 10 ms inaccuracy at times. I ran tests and
> a periodic timer gives off a much more stable clock. Unless Sleep() itself
> is more susceptible to interrupts than Select()?
> So libav* does not offer a periodic timer (with OS interdependency as a
> bonus)? Certainly explains why I could not find any, which kind of
> surprised me..
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130331/98a87967/attachment.html>

More information about the Libav-user mailing list