Updated timer.c

Changes required in timer_sleep function for the Alarm Clock assignment  were made.