Add a timer class