public static interface Timer.Context extends AutoCloseable
Timer.time()| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Equivalent to calling
stop(). |
long |
stop()
Updates the timer with the difference between current and start time.
|
long stop()
default void close()
stop().close in interface AutoCloseableCopyright © 2017. All Rights Reserved.