Button states and timer?

in principle, you create a timer eg:

unsigned long myTimer1 ;

then at some point you set it:

myTimer1= millis() ;

and later you test it:

if ( millis() - myTimer1 > 10000 ) {

  // timer expired after 10000 mS (10 seconds) so do something

}