Preparation for timers

Currently directly using timing.c, plan to use callbacks later to loosen
coupling, but first just get things working.
2 files changed