eco code using timer interrupt for task and delay