public class TPSMeter
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static long |
checkTime
Update the servers tps metrics result in every here configured milliseconds
|
static boolean |
enabled
Make TPS meter toggleable in the config
|
static int |
limit
The tps limit, if the servers tps is bellow this value, then you will see a warning in the console
|
static java.util.concurrent.ScheduledFuture |
meter
The instance of the TPS meter future, it is stopped on SpigotLib shutdown
|
static int |
reportCrashAfter
Amount of detected 0 TPS before crash is reported
|
static int |
ticks
Ticks elapsed from the last tps metrics result update
|
static int |
totalTicks
Total elapsed tick count from server startup
|
static double |
tps
The current tps value of the server
|
static int |
zeroTpsCount
Amount of detected 0 TPS in a row.
|
Constructor and Description |
---|
TPSMeter() |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
start() |
public static long checkTime
public static boolean enabled
public static int limit
public static java.util.concurrent.ScheduledFuture meter
public static int reportCrashAfter
public static int ticks
public static int totalTicks
public static double tps
public static int zeroTpsCount