Updated timer.c/timer.h to fix nonnegative ticks.