public final class NullTimingHandler extends Object implements Timing
| Constructor and Description |
|---|
NullTimingHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
close() |
@Nullable co.aikar.timings.TimingHandler |
getTimingHandler()
Used internally to get the actual backing Handler in the case of delegated Handlers
|
@NotNull Timing |
startTiming()
Starts timing the execution until
Timing.stopTiming() is called. |
@NotNull 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.
|
public static final Timing NULL
@NotNull public @NotNull Timing startTiming()
TimingTiming.stopTiming() is called.startTiming in interface Timingpublic void stopTiming()
TimingStops 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 @NotNull Timing startTimingIfSync()
TimingTiming.stopTiming() is called.
But only if we are on the primary thread.startTimingIfSync in interface Timingpublic void stopTimingIfSync()
TimingStops 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@Nullable public @Nullable co.aikar.timings.TimingHandler getTimingHandler()
TiminggetTimingHandler in interface Timingpublic void close()
close in interface Timingclose in interface AutoCloseableCopyright © 2021. All rights reserved.