Measuring Busy-Wait
- How do we busy-wait? we just run a loop that does nothing.
- Then we need to measure it: use gettimeofday() - it gives the time
in micro-second accuracy (more or less).
- Here is some silly code to delay for 30 micro-seconds, in
busy-wait-3-secs.c.
Originally written by
guy keren