Adds reset function to timer class.