merge interval and sleep-till to one function

The sleep-till function now returns a boolean to make it easy to
do cycle-skipping like the old interval function does.  The old
interval function is deprecated for being a bit too special-purpose
and maintaining implicit state.  Better to make the user keep the
timebase state explicit, I feel.