I'm trying to create a simple function where I can start a timer with a button. After the timer is done (1 minute in this example), I want to execute another function and stop the timer.
I want to use a button to start the timer in a simple sheet to show a message when the timer is over.
function buttonTimer1min() {
ScriptApp.newTrigger("timer1Minute")
.timeBased()
.after(5000)
.create();
}
function timer1Minute(){
}