Converted the timer functions to macros

To reduce code size and overhead, timer_* functions have been converted to
macros. The timer.c file is no longer needed -> deleted.