Measuring Time
Keep track of detailed timing of each instruction's execution
- highly dependent on code
- hard to use with compilers
- not enough control over code generation
- interactions with caches/instruction-buffers
Loops to implement delays
- keep track of time in counters
- keeps processor busy counting and not doing other useful things
Real-time clock
- sample at different points in the program
- simple difference to measure time delay