public interface Timing extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
abort()
Stops timing and disregards current timing data.
|
void |
close() |
Timing |
startTiming()
Starts timing the execution until
stopTiming() is called. |
void |
startTimingIfSync()
Starts timing the execution until
stopTiming() is called only if
called from the main server thread. |
void |
stopTiming()
Stops timing and records the data.
|
void |
stopTimingIfSync()
Stops timing and records the data.
|
Timing startTiming()
stopTiming()
is called.void stopTiming()
void startTimingIfSync()
stopTiming()
is called only if
called from the main server thread.void stopTimingIfSync()
But only if called from the main server thread.
void abort()
void close()
close
in interface AutoCloseable