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