public class FullServerTickHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
count |
static Runnable |
PRE_PROCESS_TICK |
int |
total |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Stops timing and disregards current timing data.
|
void |
close()
This is simply for the Closeable interface so it can be used with
try-with-resources ()
|
boolean |
equals(Object o) |
double |
getAverage()
Get Average tick time of the timing
|
int |
getCurrentCount()
Get Current Tick total time of the timing
|
int |
getCurrentTotal()
Get Current Tick total time of the timing
|
co.aikar.timings.TimingHandler |
getTimingHandler()
Used internally to get the actual backing Handler in the case of delegated Handlers
|
int |
hashCode() |
boolean |
isSpecial() |
void |
startTiming()
Starts timing the execution until
Timing.stopTiming() is called. |
void |
startTimingIfSync()
Starts timing the execution until
Timing.stopTiming() is called. |
void |
stopTiming()
Stops timing and records the data.
|
void |
stopTimingIfSync()
Stops timing and records the data.
|
public static Runnable PRE_PROCESS_TICK
public int count
public int total
public void startTiming()
TimingTiming.stopTiming() is called.startTiming in interface Timingpublic void stopTiming()
TimingStops timing and records the data. Propagates the data up to group handlers.
Will automatically be called when this Timing is used with try-with-resourcesstopTiming in interface Timingpublic double getAverage()
TiminggetAverage in interface Timingpublic int getCurrentTotal()
TiminggetCurrentTotal in interface Timingpublic int getCurrentCount()
TiminggetCurrentCount in interface Timingpublic void startTimingIfSync()
TimingTiming.stopTiming() is called.
But only if we are on the primary thread.startTimingIfSync in interface Timingpublic void stopTimingIfSync()
TimingStops timing and records the data. Propagates the data up to group handlers.
Will automatically be called when this Timing is used with try-with-resources
But only if we are on the primary thread.stopTimingIfSync in interface Timingpublic void abort()
Timingpublic co.aikar.timings.TimingHandler getTimingHandler()
TiminggetTimingHandler in interface Timingpublic void close()
close in interface Timingclose in interface AutoCloseablepublic boolean isSpecial()
Copyright © 2022. All rights reserved.