Stop this timer
()
| 81 | |
| 82 | /** Stop this timer */ |
| 83 | public double stop() { |
| 84 | assert state == STARTED || state == PAUSED; |
| 85 | time = culmTime; |
| 86 | if (state == STARTED) time += timerImpl.elapsed(); |
| 87 | state = STOPPED; |
| 88 | return time; |
| 89 | } |
| 90 | |
| 91 | public void pause() { |
| 92 | assert state == STARTED; |