Add some prog-level clock stuff.

For use in the initial env, but has 1 cheat.