Timing
, AutoCloseable
public class FullServerTickHandler extends Object
Modifier and Type | Method | Description |
---|---|---|
void |
abort() |
|
void |
close() |
This is simply for the Closeable interface so it can be used with try-with-resources ()
|
boolean |
equals(Object o) |
|
co.aikar.timings.TimingHandler |
getTimingHandler() |
Used internally to get the actual backing Handler in the case of delegated Handlers
|
int |
hashCode() |
|
boolean |
isEnabled() |
|
boolean |
isSpecial() |
|
Timing |
startTiming() |
Starts timing the execution until
Timing.stopTiming() is called. |
Timing |
startTimingIfSync() |
Starts timing the execution until
Timing.stopTiming() is called. |
void |
stopTiming() |
Stops timing and records the data.
|
void |
stopTimingIfSync() |
Stops timing and records the data.
|
@NotNull public Timing startTiming()
Timing
Timing.stopTiming()
is called.startTiming
in interface Timing
public void stopTiming()
Timing
Stops timing and records the data. Propagates the data up to group handlers.
Will automatically be called when this Timing is used with try-with-resourcesstopTiming
in interface Timing
@NotNull public Timing startTimingIfSync()
Timing
Timing.stopTiming()
is called.
But only if we are on the primary thread.startTimingIfSync
in interface Timing
public void stopTimingIfSync()
Timing
Stops timing and records the data. Propagates the data up to group handlers.
Will automatically be called when this Timing is used with try-with-resources
But only if we are on the primary thread.stopTimingIfSync
in interface Timing
@NotNull public co.aikar.timings.TimingHandler getTimingHandler()
Timing
getTimingHandler
in interface Timing
public void close()
close
in interface AutoCloseable
close
in interface Timing
public boolean isSpecial()
public boolean isEnabled()
Copyright © 2020. All rights reserved.