function myFunction(time) { alert('time starts now'); //code to make the program wait before continuing alert('time is up') }