Improving Shell example sketch.

1. Fixed idle time calculation.
2. Correct idle time capture on "repeat" and "delay" commands.
3. Redefine iowait() as the yield() implementation.