Timer functions

Take a look at this

Three button footswitch

I uploaded a gig with a script which could be useful for you.