espresso3d.engine.timer
Class E3DFPSTimer

java.lang.Object
  extended byespresso3d.engine.base.E3DEngineItem
      extended byespresso3d.engine.timer.E3DTimer
          extended byespresso3d.engine.timer.E3DFPSTimer

public class E3DFPSTimer
extends E3DTimer

Author:
Curt A FramesPerSecond counter. The engine has an instance of this in it already.

Constructor Summary
E3DFPSTimer(E3DEngine engine)
           
 
Method Summary
 double getFPS()
           
 void resetTimer()
           
 void update()
          Updates the last frame time and sets the lastTickCount to be the current
 
Methods inherited from class espresso3d.engine.timer.E3DTimer
getCurrentEngineTimeSeconds, getCurrentTickCount, getLastTickCount, getLastUpdateTimeSeconds, getTickResolution
 
Methods inherited from class espresso3d.engine.base.E3DEngineItem
getEngine, setEngine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E3DFPSTimer

public E3DFPSTimer(E3DEngine engine)
Method Detail

update

public void update()
Description copied from class: E3DTimer
Updates the last frame time and sets the lastTickCount to be the current

Overrides:
update in class E3DTimer

getFPS

public double getFPS()

resetTimer

public void resetTimer()
Overrides:
resetTimer in class E3DTimer