barsuift.simLife.time
Class FpsCounter

java.lang.Object
  extended by barsuift.simLife.time.FpsCounter

public class FpsCounter
extends java.lang.Object


Constructor Summary
FpsCounter()
           
 
Method Summary
 float getAvgExecTime()
          Get the average execution time in milliseconds
 int getAvgFps()
          Get the average estimated fps, based on the average execution time.
 float getExecTime()
          Get the execution time in milliseconds
 int getFps()
          Get the current estimated fps, based on the current execution time.
 void tick()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FpsCounter

public FpsCounter()
Method Detail

tick

public void tick()

getExecTime

public float getExecTime()
Get the execution time in milliseconds

Returns:
the execution time in milliseconds

getFps

public int getFps()
Get the current estimated fps, based on the current execution time.

Returns:
the current FPS

getAvgExecTime

public float getAvgExecTime()
Get the average execution time in milliseconds

Returns:
the average execution time in milliseconds

getAvgFps

public int getAvgFps()
Get the average estimated fps, based on the average execution time.

Returns:
the average FPS


Copyright © 2010. All Rights Reserved.