do_gettimeofday( ) precision?

From: abhijit
Date: Wed Jun 23 2004 - 10:24:32 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/