Package org.spigotmc
Class CustomTimingsHandler
java.lang.Object
org.spigotmc.CustomTimingsHandler
Provides custom timing sections for /timings merged.
-
Constructor Summary
ConstructorDescriptionCustomTimingsHandler
(String name) CustomTimingsHandler
(String name, CustomTimingsHandler parent) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
printTimings
(PrintStream printStream) Prints the timings and extra data to the given stream.static void
reload()
Resets all timings.void
reset()
Reset this timer, setting all values to zero.void
Starts timing to track a section of code.void
Stops timing a section of code.static void
tick()
Ticked every tick by CraftBukkit to count the number of times a timer caused TPS loss.
-
Constructor Details
-
CustomTimingsHandler
-
CustomTimingsHandler
-
-
Method Details
-
printTimings
Prints the timings and extra data to the given stream.- Parameters:
printStream
- output stream
-
reload
public static void reload()Resets all timings. -
tick
public static void tick()Ticked every tick by CraftBukkit to count the number of times a timer caused TPS loss. -
startTiming
public void startTiming()Starts timing to track a section of code. -
stopTiming
public void stopTiming()Stops timing a section of code. -
reset
public void reset()Reset this timer, setting all values to zero.
-