public class CustomTimingsHandler extends Object
Constructor | Description |
---|---|
CustomTimingsHandler(String name) |
|
CustomTimingsHandler(String name,
CustomTimingsHandler parent) |
Modifier and Type | Method | Description |
---|---|---|
static 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 |
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.
|
public CustomTimingsHandler(@NotNull String name)
public CustomTimingsHandler(@NotNull String name, @Nullable CustomTimingsHandler parent)
public static void printTimings(@NotNull PrintStream printStream)
printStream
- output streampublic static void reload()
public static void tick()
public void startTiming()
public void stopTiming()
public void reset()
Copyright © 2020. All rights reserved.