added timer class and unit test