public static interface Timer.Context
extends java.io.Closeable
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.
|
long stop()
void close()
stop()
.close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable