Re: High res timer?

From: George Anzinger
Date: Tue May 10 2005 - 20:21:06 EST


Andre Eisenbach wrote:
Hello!

We're currently using pth_usleep() as a timer for a userspace audio
application. However, it doesn't seem very accurate and reliable. Is
there a better (more accurate) timer that we can call form a userspace
application?

You don't say what resolution you want, but to ~ 1 ms, nanosleep or clock_nanosleep should work. If you need better resolution, check out the HRT patch, see sig. below.

--
George Anzinger george@xxxxxxxxxx
High-res-timers: http://sourceforge.net/projects/high-res-timers/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/