sample code for timers design in the lecture about systems approach to games design in embedded systems lecture