Millis()

Hi everyone,
I am new to Arduino so my question may seem silly .

I created simple sketch which uses one input pin and one output pin.

While input pin gets high for more than 10000 milli seconds​ output pin gets high.

Sketch logic:-
I defined one unsigned long variable - myvar

If input is low
then myvar = Millie()

If input is high
myvar holds last Millie value.
Then
if Millie() - myvar > 10000
Output turned high
Else
Output turned low.

This works fine. But I don't know what happens while Millis() getting overflow and reset to zero again.

Is my code works during Millis() overflow time????

Always show us your current compete sketch. Use CTRL T to format the sketch. Please use code tags. Use the </> icon in the posting menu. [code] Paste sketch here. [/code]

Read this:

.

This contains everything you need to know:

(Yes, you were doing it right to begin with.)

The demo Several Things at a Time illustrates the use of millis() to manage timing. It may help with understanding the technique.

...R