Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void timeTickSeconds()
- {
- int minutes;
- seconds.increment();
- if(seconds.getValue() == 0) { // it just rolled over!
- minutes.increment();
- minutes = hours.getValue() + 1;
- {
- if(minutes.getValue() > 12)
- minutes = minutes.getValue() - 12;
- minutes.setValue(hour);
- }
- }
- {
- updateDisplay();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement