From: "Måns Rullgård" <mans@mansr.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Does 2.6.26 provide nanosecond time to the user?
Date: Fri, 18 Jul 2008 02:42:53 +0100 [thread overview]
Message-ID: <yw1x1w1srmqq.fsf@thrashbarg.mansr.com> (raw)
In-Reply-To: <200807180019.m6I0J2kG026240@deneb.dwf.com>
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.
--
Måns Rullgård
mans@mansr.com
next prev parent reply other threads:[~2008-07-18 1:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-18 0:19 Reg Clemens
2008-07-18 1:42 ` Måns Rullgård [this message]
2008-07-18 2:19 ` Reg Clemens
2008-08-01 14:11 ` Christoph Lameter
2008-07-18 3:46 ` Chris Friesen
[not found] <fa.cG/vRVVC+ZH1htzxsRnVF3NJVCc@ifi.uio.no>
2008-07-18 1:48 ` Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yw1x1w1srmqq.fsf@thrashbarg.mansr.com \
--to=mans@mansr.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®