Add a timer to the drawing thread in css1.c