public static interface Timer.Context extends 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 AutoCloseable
close
in interface Closeable
Copyright © 2020 JBoss by Red Hat. All rights reserved.