gettimeofday() vs. /proc/rtc

Truxton Fulton (trux@truxton.com)
Sun, 19 Jul 1998 11:37:49 -0700 (PDT)


It takes 1000 microseconds to read /proc/rtc, whereas gettimeofday()
takes only 15 microseconds to complete. Both of these are way too
long. On my 133 Mhz 486, it seems like there should be a fine grained
timer that takes less than 1 microsecond to read... any suggestions?

-Truxton

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html