Mail Archives: djgpp/2003/09/23/16:15:29
Damien Knight <spook AT kmfms DOT com> wrote:
> As I've been told, RDTSC is a feature of pentium (and up) processers that
> tracks the number of processer cycles completed since the system last
> powered up, making it useful for calculating system uptime
IIRC, uptime is probably the one thing RDTSC is least useful for. The
counters overflow much too early for that. Note that these counters
run with CPU clock speed, i.e. more than a billion ticks per second.
The RDTSC stuff is really meant for code optimization tests. You can
not just count ticks, but several types of CPU-internal events
relevant for program performance, like cache misses or pipeline
stalls.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -