Fixed: timer.c for mac