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