Package net.minecraft.util
Class FrameTimer
java.lang.Object
net.minecraft.util.FrameTimer
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final long[]
static final int
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getAverageDuration
(int p_144733_) long[]
getLog()
int
int
void
logFrameDuration
(long p_13756_) int
scaleAverageDurationTo
(int p_144735_, int p_144736_) int
scaleSampleTo
(long p_13758_, int p_13759_, int p_13760_) int
wrapIndex
(int p_13763_)
-
Field Details
-
LOGGING_LENGTH
public static final int LOGGING_LENGTH- See Also:
-
loggedTimes
private final long[] loggedTimes -
logStart
private int logStart -
logLength
private int logLength -
logEnd
private int logEnd
-
-
Constructor Details
-
FrameTimer
public FrameTimer()
-
-
Method Details
-
logFrameDuration
public void logFrameDuration(long p_13756_) -
getAverageDuration
public long getAverageDuration(int p_144733_) -
scaleAverageDurationTo
public int scaleAverageDurationTo(int p_144735_, int p_144736_) -
scaleSampleTo
public int scaleSampleTo(long p_13758_, int p_13759_, int p_13760_) -
getLogStart
public int getLogStart() -
getLogEnd
public int getLogEnd() -
wrapIndex
public int wrapIndex(int p_13763_) -
getLog
public long[] getLog()
-