|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.system.Timer
com.jme3.system.NanoTimer
public class NanoTimer
NanoTimer
is a System.nanoTime implementation of Timer
.
This is primarily useful for headless applications running on a server.
コンストラクタの概要 | |
---|---|
NanoTimer()
|
メソッドの概要 | |
---|---|
float |
getFrameRate()
Returns the "calls per second". |
long |
getResolution()
Returns the resolution of the timer. |
long |
getTime()
Returns the current time in ticks. |
float |
getTimeInSeconds()
Returns the time in seconds. |
float |
getTimePerFrame()
Returns the time, in seconds, between the last call and the current one. |
void |
reset()
Reset the timer to 0. |
void |
update()
update recalculates the frame rate based on the previous
call to update. |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public NanoTimer()
メソッドの詳細 |
---|
public float getTimeInSeconds()
Timer
内の getTimeInSeconds
public long getTime()
Timer
の記述:getResolution()
. The timer starts at 0 ticks.
Timer
内の getTime
public long getResolution()
Timer
の記述:
Timer
内の getResolution
public float getFrameRate()
Timer
の記述:
Timer
内の getFrameRate
public float getTimePerFrame()
Timer
の記述:
Timer
内の getTimePerFrame
public void update()
Timer
の記述:update
recalculates the frame rate based on the previous
call to update. It is assumed that update is called each frame.
Timer
内の update
public void reset()
Timer
の記述:
Timer
内の reset
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |