public class FrameTimer
extends java.lang.Object
Constructor and Description |
---|
FrameTimer() |
Modifier and Type | Method and Description |
---|---|
void |
addFrame(long runningTime)
Add a frame at the next index in the array frames
|
long[] |
getFrames()
Return the array of frames
|
int |
getIndex()
Return the index of the next frame in the array
|
int |
getLagometerValue(long time,
int multiplier)
Return a value from time and multiplier to display the lagometer
|
int |
getLastIndex()
Return the last index used when 240 frames have been set
|
int |
parseIndex(int rawIndex)
Change 240 to 0
|
public void addFrame(long runningTime)
public int getLagometerValue(long time, int multiplier)
public int getLastIndex()
public int getIndex()
public int parseIndex(int rawIndex)
public long[] getFrames()