public static class Timer.Context extends Object implements Closeable
Timer.time()
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
stop()
Stops recording the elapsed time, updates the timer and returns the elapsed time in
nanoseconds.
|
public long stop()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2016. All rights reserved.