add common defines
set up timekeeping module