add Unit and BaseUnit to timer class