Package org.spigotmc
Class CustomTimingsHandler
java.lang.Object
org.spigotmc.CustomTimingsHandler
public class CustomTimingsHandler extends Object
Provides custom timing sections for /timings merged.
- 
Constructor SummaryConstructors Constructor Description CustomTimingsHandler(String name)CustomTimingsHandler(String name, CustomTimingsHandler parent)
- 
Method SummaryModifier and Type Method Description static 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.voidstartTiming()Starts timing to track a section of code.voidstopTiming()Stops 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
- 
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.
 
-