public class Lag
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static long |
LT
something :_:
|
static long[] |
T
Ticks
|
static int |
TC
Tick count
|
Constructor and Description |
---|
Lag()
|
Modifier and Type | Method and Description |
---|---|
static long |
getElapsed(int tI)
Get number of ticks since
|
static double |
getFullPercentage()
Get TPS percentage (of 20)
|
static double |
getPercentage()
Get lag percentage
|
static double |
getTPS()
Get the server TPS
|
static double |
getTPS(int ticks)
Return the tick per second (measured in $ticks)
|
void |
run()
|
public static int TC
public static long[] T
public static long LT
public static double getTPS()
public static double getTPS(int ticks)
ticks
- Tickspublic static long getElapsed(int tI)
tI
- Ticks <public static double getPercentage()
public static double getFullPercentage()
public void run()
run
in interface java.lang.Runnable