Google interview question

Writing C code for an implementation of timers.