public interface FPSCounter
setUpdateFPSFrames(int, PrintStream)
to enable and disable the FPSCounter feature.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FRAMES_PER_INTERVAL |
Modifier and Type | Method and Description |
---|---|
long |
getFPSStartTime()
Returns the time of the first display call in milliseconds after enabling this feature via
setUpdateFPSFrames(int, PrintStream) .This value is reset via resetFPSCounter() . |
float |
getLastFPS() |
long |
getLastFPSPeriod() |
long |
getLastFPSUpdateTime()
Returns the time of the last update interval in milliseconds, if this feature is enabled via
setUpdateFPSFrames(int, PrintStream) .This value is reset via resetFPSCounter() . |
float |
getTotalFPS() |
long |
getTotalFPSDuration() |
int |
getTotalFPSFrames() |
int |
getUpdateFPSFrames() |
void |
resetFPSCounter()
Reset all performance counter (startTime, currentTime, frame number)
|
void |
setUpdateFPSFrames(int frames,
PrintStream out) |
static final int DEFAULT_FRAMES_PER_INTERVAL
void setUpdateFPSFrames(int frames, PrintStream out)
frames
- Update interval in frames.DEFAULT_FRAMES_PER_INTERVAL
.out
- optional print stream where the fps values gets printed if not null at every frames intervalvoid resetFPSCounter()
int getUpdateFPSFrames()
setUpdateFPSFrames(int, PrintStream)
long getFPSStartTime()
setUpdateFPSFrames(int, PrintStream)
.resetFPSCounter()
.long getLastFPSUpdateTime()
setUpdateFPSFrames(int, PrintStream)
.resetFPSCounter()
.long getLastFPSPeriod()
setUpdateFPSFrames(int, PrintStream)
,
resetFPSCounter()
float getLastFPS()
getUpdateFPSFrames()
/ getLastFPSPeriod()
setUpdateFPSFrames(int, PrintStream)
,
resetFPSCounter()
int getTotalFPSFrames()
getFPSStartTime()
up to getLastFPSUpdateTime()
setUpdateFPSFrames(int, PrintStream)
,
resetFPSCounter()
long getTotalFPSDuration()
getLastFPSUpdateTime()
- getFPSStartTime()
setUpdateFPSFrames(int, PrintStream)
,
resetFPSCounter()
float getTotalFPS()
getTotalFPSFrames()
/ getTotalFPSDuration()
setUpdateFPSFrames(int, PrintStream)
,
resetFPSCounter()
Copyright 2010 JogAmp Community.