Reduce time in busy loop