/** * <code>toString</code> returns the string representation of this timer * in the format: <br> * <br> * jme.utility.Timer@1db699b <br> * Time: {LONG} <br> * FPS: {LONG} <br> * * @return the string representation of this object. */ @Override public String toString() { String string = super.toString(); string += "\nTime: " + oldTime; string += "\nFPS: " + getFrameRate(); return string; } }
/** * Constructor builds a <code>Timer</code> object. All values will be * initialized to its default values. */ public LwjglSmoothingTimer() { reset(); //print timer resolution info logger.log(Level.FINE, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES); }
/** * Constructor builds a <code>Timer</code> object. All values will be * initialized to it's default values. */ public LwjglSmoothingTimer() { reset(); //print timer resolution info logger.log(Level.FINE, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES); }
/** * <code>toString</code> returns the string representation of this timer * in the format: <br> * <br> * jme.utility.Timer@1db699b <br> * Time: {LONG} <br> * FPS: {LONG} <br> * * @return the string representation of this object. */ @Override public String toString() { String string = super.toString(); string += "\nTime: " + oldTime; string += "\nFPS: " + getFrameRate(); return string; } }