Simplify timer decorator implementation