Recursively stop timer and sub timers
()
| 36 | |
| 37 | /** Recursively stop timer and sub timers */ |
| 38 | @Override |
| 39 | public double stop() { |
| 40 | double time = super.stop(); |
| 41 | |
| 42 | for (Map.Entry<String, RTimerTree> entry : children) { |
| 43 | RTimer child = entry.getValue(); |
| 44 | if (child.state == STARTED || child.state == PAUSED) child.stop(); |
| 45 | } |
| 46 | return time; |
| 47 | } |
| 48 | |
| 49 | protected RTimerTree newTimer() { |
| 50 | return new RTimerTree(); |