use rtos delay method