|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.ui.swingViewer.util.FpsCounter
public class FpsCounter
A simple counter that allows to count the number of frames per second.
Constructor Summary | |
---|---|
FpsCounter()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FpsCounter()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |