|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmako5.evnt.TimeGnome
public class TimeGnome
The time keeper that knows the number of elapsed milliseconds, the number of frames, and can calculate the time per frame. Keeps a running mSPF (milliseconds/frame) count and can be used as a timer function for smoothing of programs.
| Constructor Summary | |
|---|---|
TimeGnome()
Initializes values for all variables. |
|
TimeGnome(long resetFrames)
Initializes values for all variables. |
|
| Method Summary | |
|---|---|
float |
getMSPF()
Returns the number of milliseconds per frame. |
void |
reset()
Provides a starting time for the gnome and resets the number of frames. |
void |
update()
Recalcs elapsed time and increments the number of frames. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeGnome()
public TimeGnome(long resetFrames)
| Method Detail |
|---|
public void reset()
public void update()
public float getMSPF()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||