Looping without breaking the code with the Millis function

Has I also use my blog as a reference for myself, I mainly put this there for further reference. I usually use this lines of code to loop without stopping other functions from being executed or to time certain events. void myFunc() { unsigned long interval = 60 * 1000; // 60 seconds. static unsigned long previousMillis; if( millis() – previousMillis > interval ) { […]