jglcore
Class JGL_Time

java.lang.Object
  extended by jglcore.JGL_Time

public final class JGL_Time
extends java.lang.Object

Real-time manager.

Author:
Nicolas Devere

Constructor Summary
JGL_Time()
           
 
Method Summary
static float getTimer()
          Returns the real-time factor.
static void initTimer()
          Resets the real time system.
static void setTimer()
          Computes the real time factor since the last call of this method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGL_Time

public JGL_Time()
Method Detail

initTimer

public static void initTimer()
Resets the real time system.


setTimer

public static void setTimer()
Computes the real time factor since the last call of this method. A 1 value means a 50 frames/second frame-rate.


getTimer

public static float getTimer()
Returns the real-time factor.

Returns:
the real-time factor