Package org.spigotmc
Class CustomTimingsHandler
java.lang.Object
org.spigotmc.CustomTimingsHandler
Provides custom timing sections for /timings merged.
- 
Constructor SummaryConstructorsConstructorDescriptionCustomTimingsHandler(String name) CustomTimingsHandler(String name, CustomTimingsHandler parent) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidprintTimings(PrintStream printStream) Prints the timings and extra data to the given stream.static voidreload()Resets all timings.voidreset()Reset this timer, setting all values to zero.voidStarts timing to track a section of code.voidStops timing a section of code.static voidtick()Ticked every tick by CraftBukkit to count the number of times a timer caused TPS loss.
- 
Constructor Details- 
CustomTimingsHandler
- 
CustomTimingsHandler
 
- 
- 
Method Details- 
printTimingsPrints the timings and extra data to the given stream.- Parameters:
- printStream- output stream
 
- 
reloadpublic static void reload()Resets all timings.
- 
tickpublic static void tick()Ticked every tick by CraftBukkit to count the number of times a timer caused TPS loss.
- 
startTimingpublic void startTiming()Starts timing to track a section of code.
- 
stopTimingpublic void stopTiming()Stops timing a section of code.
- 
resetpublic void reset()Reset this timer, setting all values to zero.
 
-