[linux-audio-dev] A bit of an [ANN] :)

Dave Robillard drobilla at connect.carleton.ca
Mon Jul 10 16:39:58 UTC 2006




james at dis-dot-dat.net wrote:


>Howdy peeps.
>
>Not really much of a release, so not much fanfare, but in the
>interests of sharing effort I give you...
>
>Powernap!
>
>http://dis-dot-dat.net/?item=code/powernap/
>
>If, like me, you need to drive an app from a Python interface,
>powernap can help.  It's a small extension that switches to the
>real-time scheduler and provides two handy sleep-like functions:
>
>nap() naps for a given number of milliseconds, timed with the RTC
>
>rnap() is a "rolling nap" that tries to make the time between calls
>the given number of milliseconds.  A padding nap, if you will.
>
>It works for me and it might come in handy for someone else.

Nice, this will definitely come in handy for me.

Have you done any benchmarking on what kind of timing precision you can 
get?

-DR-



More information about the Linux-audio-dev mailing list