public class FpsCounter
extends java.lang.Object
Constructor and Description |
---|
FpsCounter() |
Modifier and Type | Method and Description |
---|---|
void |
beginFrame()
Start a frame measure.
|
void |
endFrame()
End a frame measure.
|
double |
getAverageFramesPerSecond()
The average frame-per-second measure.
|
double |
getAverageFrameTimeInSeconds()
The average frame time.
|
int |
getAverageMeasureCount()
The number of frames times used to compute the average frame-per-second and
frame time.
|
double |
getFramesPerSecond()
The number of frames per second according to the last measured frame
(instantaneous measure).
|
double |
getLastFrameTimeInSeconds()
The duration in seconds of the last measured frame.
|
void |
resetAverages() |
public double getFramesPerSecond()
public double getLastFrameTimeInSeconds()
public int getAverageMeasureCount()
public double getAverageFramesPerSecond()
getAverageMeasureCount()
public double getAverageFrameTimeInSeconds()
public void resetAverages()
public void beginFrame()
public void endFrame()