public static class Timer.Context extends Object implements 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.
|
public long stop()
public void close()
stop()
.close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014. All Rights Reserved.