added timer decorartor for classes