next up previous contents
Next: Further eqntott Transformations Up: Profiling Mechanisms Previous: pixie --- Basic

Real Time Stopwatches

Figure gif demonstrates how stopwatch counters can be implemented using the RDTSC instruction on a Pentium for timestamps. See also Appendix gif for the actual stopwatch code used for the clever compiler implementation.

  
Figure: test-rdtsc.c: using the RDTSC time stamp instruction.



Reinventing Computing, MIT AI Lab. Author: pshuang@ai.mit.edu (Ping Huang)