Starts the stopwatch. @return this Stopwatch instance @throws IllegalStateException if the stopwatch is already running.
()
| 132 | * @throws IllegalStateException if the stopwatch is already running. |
| 133 | */ |
| 134 | @CanIgnoreReturnValue |
| 135 | public Stopwatch start() { |
| 136 | checkState(!isRunning, "This stopwatch is already running."); |
| 137 | isRunning = true; |
| 138 | startTick = ticker.read(); |
| 139 | return this; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Stops the stopwatch. Future reads will return the fixed duration that had elapsed up to this |
no test coverage detected