Starts the stopwatch. @return this Stopwatch instance @throws IllegalStateException if the stopwatch is already running.
()
| 142 | */ |
| 143 | |
| 144 | @CanIgnoreReturnValue |
| 145 | public Stopwatch start() { |
| 146 | checkState(!isRunning, "This stopwatch is already running."); |
| 147 | isRunning = true; |
| 148 | startTick = ticker.read(); |
| 149 | return this; |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Stops the stopwatch. Future reads will return the fixed duration that had elapsed up to this |
no test coverage detected