LWN.net Logo

High-resolution timers in user space

High-resolution timers in user space

Posted Jan 19, 2006 14:51 UTC (Thu) by corbet (editor, #1)
In reply to: The high-resolution timer API by hein.zelle
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).


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds