function countUp() {
  // buzz for 15 seconds
  counter++;
  if (counter <=15) {
    Bangle.buzz();
  }
  // stop counting up after 60 seconds
  if (counter > 60) {
    outOfTime();
    return;
  }
  g.clear();
  E.showMessage("", appTitle());
  g.setFontAlign(0,0); // center font
  g.setBgColor(-1).setColor(0,0,1); // blue
  g.setFont("Vector",20); // vector font, 20px
  g.drawString("Timer: " + timeFormated(counterStart),80,55);
  g.setFont("Vector",30); // vector font, 80px  
  g.setBgColor(-1).setColor(1,0,0); // red
  g.drawString("Time is up!",85,85);
  g.setFont("Vector",40); // vector font, 80px
  // draw the current counter value
  g.drawString(timeFormated(counter),80,130);
}
/* this counts up (one minute), after time is up
  Show
  - Title with current time
  - initial timer value
  - "Time is up!"
  - time since timer finished
*/
this counts up (one minute), after time is up
Show
Title with current time
initial timer value
"Time is up!"
time since timer finished
this counts up ( one minute ) after time is up Show Title with current time initial timer value " Time is up! " time since timer finished
function countUp() {
  counter++;
  if (counter <=15) {
    Bangle.buzz();
  }
  if (counter > 60) {
    outOfTime();
    return;
  }
  g.clear();
  E.showMessage("", appTitle());
  g.setFontAlign(0,0); 
  g.setBgColor(-1).setColor(0,0,1); 
  g.setFont("Vector",20); 
  g.drawString("Timer: " + timeFormated(counterStart),80,55);
  g.setFont("Vector",30); 
  g.setBgColor(-1).setColor(1,0,0); 
  g.drawString("Time is up!",85,85);
  g.setFont("Vector",40); 
  g.drawString(timeFormated(counter),80,130);
}
function countUp ( ) { counter ++ ; if ( counter <= 15 ) { Bangle . buzz ( ) ; } if ( counter > 60 ) { outOfTime ( ) ; return ; } g . clear ( ) ; E . showMessage ( "" , appTitle ( ) ) ; g . setFontAlign ( 0 , 0 ) ; g . setBgColor ( - 1 ) . setColor ( 0 , 0 , 1 ) ; g . setFont ( "Vector" , 20 ) ; g . drawString ( "Timer: " + timeFormated ( counterStart ) , 80 , 55 ) ; g . setFont ( "Vector" , 30 ) ; g . setBgColor ( - 1 ) . setColor ( 1 , 0 , 0 ) ; g . drawString ( "Time is up!" , 85 , 85 ) ; g . setFont ( "Vector" , 40 ) ; g . drawString ( timeFormated ( counter ) , 80 , 130 ) ; }
this counts up (one minute), after time is up
Show
 Title with current time
 initial timer value
 "Time is up!"
this counts up ( one minute ) after time is up Show Title with current time initial timer value " Time is up! "
// buzz for 15 seconds // stop counting up after 60 seconds // center font // blue // vector font, 20px // vector font, 80px   // red // vector font, 80px // draw the current counter value