| 程序包 | 说明 |
|---|---|
| cn.sliew.milky.common.stopwatch |
| 限定符和类型 | 方法和说明 |
|---|---|
static Stopwatch |
StopWatchs.createStarted()
Creates (and starts) a new stopwatch using
System.nanoTime() as its time source. |
static Stopwatch |
StopWatchs.createStarted(Ticker ticker)
Creates (and starts) a new stopwatch, using the specified time source.
|
static Stopwatch |
StopWatchs.createUnstarted()
Creates (but does not start) a new stopwatch using
System.nanoTime() as its time source. |
static Stopwatch |
StopWatchs.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.
|
Copyright © 2021. All rights reserved.