lkml.org 
[lkml]   [2005]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: High res timer?
    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@mvista.com
    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-05-11 03:23    [W:0.020 / U:0.168 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site