Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.  
  2. public void timeTickSeconds()
  3. {
  4.     int minutes;
  5.          
  6.     seconds.increment();
  7.     if(seconds.getValue() == 0) {  // it just rolled over!
  8.     minutes.increment();
  9.     minutes = hours.getValue() + 1;
  10.    {
  11.     if(minutes.getValue() > 12)
  12.          
  13.     minutes = minutes.getValue() - 12;
  14.     minutes.setValue(hour);
  15.    }
  16.     }
  17.     {      
  18.     updateDisplay();
  19.     }
  20.    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement