lkml.org 
[lkml]   [2005]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Accessing monotonic clock from modules
Arjan van de Ven wrote:
>>I do thing that this is useful, though--at GUADEC I talked with some
>>folks who really want to get at a good clock source, the same from both
>>the kernel and user-space.
>
>
> I'd love to see one (but preferably 2 or 3) users of this so that we can
> figure out what a good interface would look like...

For ourselves we implemented an clock interface for a limited subset of
architectures that provides a fast timestamp in kernel and userspace.

Basically it has one call to return a 64-bit timestamp, and another call
to tell you how fast the clock is ticking.

If it can, it uses things like the x86 cycle counter or the ppc
timebase. If there is no arch support, it falls back to clock_gettime.

Chris
-
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-06-02 15:50    [W:0.135 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site