High-resolution timers in user space
Posted Jan 19, 2006 14:51 UTC (Thu) by corbet
In reply to: The high-resolution timer API
Parent article: The high-resolution timer API
I suppose I could have said something about that... hrtimers are used now for the implementation of POSIX timers and for the nanosleep() call, so, in that sense, yes they are available to user space.
The other thing which I really should have mentioned (I did in an earlier article) was that, in order to provide truly high resolution, you also need a high-resolution clock within the kernel. Current kernels still do not have that, so the hrtimer interface still works with HZ resolution - 4ms on i386 with the default configuration. There are a few high-resolution clock patches around, mainly tied to John Stultz's low-level clock rework; something should get merged before too long, I would think (but not for 2.6.16).
to post comments)