Time Stamp Counter
From Wikipedia, the free encyclopedia
The Time Stamp Counter is a feature of the Intel IA-32 instruction set which is accessed via the RDTSC instruction. This was added with the original Intel Pentium processor.
Contents |
[edit] Uses
This is primarily used as a high-resolution timer.
[edit] Drawbacks
If the processor frequency changes (via SpeedStep for example) the timer no longer accurately measures wall clock time.
On symmetric multiprocessing systems the timestamp may differ depending on the CPU that is queried. In particular, AMD processors may have significantly different results. (See below reference by an AMD engineer on TSC drift.)
[edit] See also
- HPET (high precision event timer)