@NotThreadSafe
public final class ContinuousStopwatch
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.logging.Logger |
logger |
private com.google.common.base.Stopwatch |
stopwatch |
| Constructor and Description |
|---|
ContinuousStopwatch(com.google.common.base.Stopwatch stopwatch)
Constructs a ContinuousStopwatch, which will start timing immediately after construction.
|
| Modifier and Type | Method and Description |
|---|---|
long |
reset()
Resets and returns elapsed time in milliseconds.
|
void |
resetAndLog(java.lang.String label)
Resets and logs elapsed time in milliseconds.
|
private final java.util.logging.Logger logger
private final com.google.common.base.Stopwatch stopwatch