All of lore.kernel.org
 help / color / mirror / Atom feed
From: abhijit <slashdev@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: do_gettimeofday( ) precision?
Date: Wed, 23 Jun 2004 20:53:29 +0530	[thread overview]
Message-ID: <7c07cd69040623082311234157@mail.gmail.com> (raw)

hello,

the comment on top of do_gettimeofday( ) [arch/i386/kernel/time.c] says:

/*
 * This version of gettimeofday has microsecond resolution
 * and better than microsecond precision on fast x86 machines with TSC.
 */
void do_gettimeofday(struct timeval *tv)
{
...

but the code below limits usec to <= 1000000. so isn't the resolution
not limited to microsec even on TSC capable boxes? 

if one wants higher resolution (for timestamping etc.) whats the preferred
way?

thanks
abhijit

             reply	other threads:[~2004-06-23 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-23 15:23 abhijit [this message]
2004-06-23 15:54 ` do_gettimeofday( ) precision? Lukasz Michal Rak
2004-06-24  6:43   ` abhijit
2004-06-24  6:59     ` abhijit

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=7c07cd69040623082311234157@mail.gmail.com \
    --to=slashdev@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.