Package org.spigotmc

Class CustomTimingsHandler

java.lang.Object
org.spigotmc.CustomTimingsHandler

public class CustomTimingsHandler
extends java.lang.Object
Provides custom timing sections for /timings merged.
  • Constructor Summary

    Constructors 
    Constructor Description
    CustomTimingsHandler​(java.lang.String name)  
    CustomTimingsHandler​(java.lang.String name, CustomTimingsHandler parent)  
  • Method Summary

    Modifier and Type Method Description
    static void printTimings​(java.io.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 startTiming()
    Starts timing to track a section of code.
    void stopTiming()
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • printTimings

      public static void printTimings​(java.io.PrintStream printStream)
      Prints the timings and extra data to the given stream.
      Parameters:
      printStream -
    • 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.