UKHeliBob:
By setting currentMillis and previousMillis to millis() in setup() or even at the start of loop() with a boolean preventing it happening at every iteration of loop().If you are dealing with really short periods then use micros() instead.
Sorry, you have lost me. Would you care to explain ?
Sorry. old term for problems at the start or end of the program.