public class CustomTimingsHandler
extends java.lang.Object
Constructor | Description |
---|---|
CustomTimingsHandler(java.lang.String name) |
|
CustomTimingsHandler(java.lang.String name,
CustomTimingsHandler parent) |
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.
|
public CustomTimingsHandler(java.lang.String name)
public CustomTimingsHandler(java.lang.String name, CustomTimingsHandler parent)
public static void printTimings(java.io.PrintStream printStream)
printStream
- public static void reload()
public static void tick()
public void startTiming()
public void stopTiming()
public void reset()
Copyright © 2018. All rights reserved.