timer for the graph