Could evaluate msTick() outside the loop/critical section