|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for running timer constantly, with specified frame per second.
Method Summary | |
int |
getCurrentFPS()
Returns current frame per second. |
int |
getRequestedFPS()
Returns requested frame per second. |
boolean |
isRunning()
Returns true if the timer is currently running ( startTimer(int) has been called). |
void |
sleep()
|
void |
startTimer(int fps)
Starts the timer with fps frame per second. |
void |
stopTimer()
Stops the timer. |
Method Detail |
public void startTimer(int fps)
fps
frame per second.
fps
- the timer frame per second.getCurrentFPS()
,
getRequestedFPS()
public void stopTimer()
public void sleep()
public boolean isRunning()
startTimer(int)
has been called).
public int getCurrentFPS()
getRequestedFPS()
public int getRequestedFPS()
startTimer(int)
method. getCurrentFPS()
.
getCurrentFPS()
,
startTimer(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |