Refactor timer to not include cpu specific C files.