Add timer_lf decorator and context manager