Loop iterations after particular time

This is an extract from the Blink Without Delay example

if(currentMillis - previousMillis > interval) {
    // save the last time you blinked the LED 
    previousMillis = currentMillis;

It will keep time more accurately if the last line is changed to

previousMillis = previousMillis + interval

There is a long discussion about why this is true here.

...R