public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* do_gettimeofday( ) precision?
@ 2004-06-23 15:23 abhijit
  2004-06-23 15:54 ` Lukasz Michal Rak
  0 siblings, 1 reply; 4+ messages in thread
From: abhijit @ 2004-06-23 15:23 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-24  6:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 15:23 do_gettimeofday( ) precision? abhijit
2004-06-23 15:54 ` Lukasz Michal Rak
2004-06-24  6:43   ` abhijit
2004-06-24  6:59     ` abhijit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox