|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.util.Timer
Timer is the base class for a high resolultion timer. It is created from
getTimer("display system")
| Constructor Summary | |
Timer()
|
|
| Method Summary | |
abstract float |
getFrameRate()
Returns the "calls per second". |
abstract long |
getResolution()
Returns the resolution of the timer. |
abstract long |
getTime()
Returns the current time in ticks. |
float |
getTimeInSeconds()
Returns the time in seconds. |
abstract float |
getTimePerFrame()
Returns the time, in seconds, between the last call and the current one. |
static Timer |
getTimer(java.lang.String version)
Returns the high resolution timer. |
abstract void |
update()
update recalulates the frame rate based on the previous
call to update. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Timer()
| Method Detail |
public abstract long getTime()
getResolution().
public float getTimeInSeconds()
public abstract long getResolution()
public abstract float getFrameRate()
public abstract float getTimePerFrame()
public abstract void update()
update recalulates the frame rate based on the previous
call to update. It is assumed that update is called each frame.
public static Timer getTimer(java.lang.String version)
version - The version of the rendering enviroment.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||