lkml.org 
[lkml]   [2008]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Does 2.6.26 provide nanosecond time to the user?
Date
From
> Reg Clemens <reg@dwf.com> writes:
>
> > Im confused.
> > (sorry I havent been following the linux-kernel mailing list on this)
> >
> > Does 2.6.26 use nanosecond time
> > (1) internally?
> > (2) provide it to the user?
> >
> > I see no way to turn it on/off in xconfig.
> > Yet I do see STA_NANO defined in sys/timex.h which is a good start.
> >
> > and IF it provides it to the user, what do I use to get nanosecond time.
> > My search with man -k for timespec turns up
> > sys_clock_getres
> > and sys_clock_gettime
> >
> > or possibly clock_getres and clock_gettime, the man pages use both,
> > but NONE of these entry points seem to exist in my system.
>
> You might need to link with -lrt to get those functions.
>
Thanks, -lrt works fine, that answers that part of the question, how about
the first question.

--
Reg.Clemens
reg@dwf.com




\
 
 \ /
  Last update: 2008-07-18 04:27    [from the cache]
©2003-2011 Jasper Spaans