welcome to the forum.
As soon as you start asking specific questions you will get helpful answers.
Specific answers are much much easier to answer.
Here is a tutorial how to code non-blocking timing based on millis().
I am pretty sure that you will understand the everyday description of the tutorial