@Override public float getTimeInSeconds() { return getTime() * INV_LWJGL_TIMER_RES; }
/** * <code>update</code> recalulates the frame rate based on the previous * call to update. It is assumed that update is called each frame. */ public void update() { long curTime = getTime(); lastTPF = (curTime - oldTime) * (1.0f / LWJGL_TIMER_RES); lastFPS = 1.0f / lastTPF; oldTime = curTime; }
public void reset() { startTime = Sys.getTime(); oldTime = getTime(); }
/** * <code>update</code> recalulates the frame rate based on the previous * call to update. It is assumed that update is called each frame. */ public void update() { long curTime = getTime(); lastTPF = (curTime - oldTime) * (1.0f / LWJGL_TIMER_RES); lastFPS = 1.0f / lastTPF; oldTime = curTime; }
@Override public float getTimeInSeconds() { return getTime() * INV_LWJGL_TIMER_RES; }
public void reset() { startTime = Sys.getTime(); oldTime = getTime(); }