What is millis()? How do I make a timer?
millis() is a function in Arduino that returns the running clock time on your Arduino since moment it was most recently turned on. It returns this time in milli seconds. Take that time and divide by 1000 and now you have seconds.
Any event can trigger your Arduino to record the time, not just a button.