Package | Description |
---|---|
com.google.common.base |
Basic utility libraries and interfaces.
|
com.google.common.cache |
This package contains caching utilities.
|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
static Stopwatch |
Stopwatch.createStarted()
Creates (and starts) a new stopwatch using
System.nanoTime() as its time source. |
static Stopwatch |
Stopwatch.createStarted(Ticker ticker)
Creates (and starts) a new stopwatch, using the specified time source.
|
static Stopwatch |
Stopwatch.createUnstarted()
Creates (but does not start) a new stopwatch using
System.nanoTime() as its time source. |
static Stopwatch |
Stopwatch.createUnstarted(Ticker ticker)
Creates (but does not start) a new stopwatch, using the specified time source.
|
Stopwatch |
Stopwatch.reset()
Sets the elapsed time for this stopwatch to zero, and places it in a stopped state.
|
Stopwatch |
Stopwatch.start()
Starts the stopwatch.
|
Stopwatch |
Stopwatch.stop()
Stops the stopwatch.
|
Modifier and Type | Field and Description |
---|---|
(package private) Stopwatch |
LocalCache.LoadingValueReference.stopwatch |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<Service,Stopwatch> |
ServiceManager.ServiceManagerState.startupTimers |