Counter in Arduino

I once read a part about a counter running in the back of the normal program flow the Arduino is in, by comparing certain moments in time with that counter, time-based issues are simple to solve.

What is that name again??

You are probably thinking of the millis() function

Take a look at the BlinkWithoutDelay example to see how to do timing without blocking the free running of the loop() function

Yes that was the one!
I'll dig into that