Add timer directive