Returns a subtimer given its name. If the subtimer did not exist a new subtimer will be started and returned, otherwise an existing subtimer will be returned as-is.
(String desc)
| 55 | * and returned, otherwise an existing subtimer will be returned as-is. |
| 56 | */ |
| 57 | public RTimerTree sub(String desc) { |
| 58 | RTimerTree child = children.get(desc); |
| 59 | if (child == null) { |
| 60 | child = newTimer(); |
| 61 | children.add(desc, child); |
| 62 | } |
| 63 | return child; |
| 64 | } |
| 65 | |
| 66 | @Override |
| 67 | public String toString() { |