Added macros to make timer.c more clear