Move time-keeping into a separate package.