MCPcopy Create free account
hub / github.com/antlr/codebuff / start

Method start

corpus/java/training/guava/base/Stopwatch.java:134–140  ·  view source on GitHub ↗

Starts the stopwatch. @return this Stopwatch instance @throws IllegalStateException if the stopwatch is already running.

()

Source from the content-addressed store, hash-verified

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

Callers 6

separatorStartMethod · 0.45
createStartedMethod · 0.45
startFinalizerMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
waitForCloseMethod · 0.45

Calls 2

checkStateMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected