Need help with programming a stopwatch!

Hey there!

So I'm building a stopwatch and right now, I'm making a small prototype.
I managed to make a simple one, that starts when a button is pressed, and
records the value of when the stop button is pressed. I'm just using the millis()
function. But now I added a third button that I want to use for resetting the value
so it goes back to 0, and starts again from 0 when I press the start button again.

Can someone guide me in the right direction of what I should do?
To be exact, how can I reset the millis() function, so that it starts
from 0 again?

Thanks! :slight_smile:

To be exact, how can I reset the millis() function, so that it starts
from 0 again?

Reset the Arduino. How often you you reset your watch? That's as often as you need to reset millis(). Everything else involves relative times.