de.esw.eengine.core
Class Timer

java.lang.Object
  extended by de.esw.eengine.core.Timer

public class Timer
extends java.lang.Object

Since:
1.0
Version:
$Id: Timer.java 133 2005-06-28 14:24:45Z markusw $
Author:
markusw

Constructor Summary
Timer()
           
 
Method Summary
 long getDeltaTime()
          Returns the time in millis since last call to getDeltaTime and resets the timer.
 long getDeltaTime(boolean reset)
           
 void reset()
          Resets the tick counter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Method Detail

getDeltaTime

public long getDeltaTime()
Returns the time in millis since last call to getDeltaTime and resets the timer.

Returns:
Time in millis since last call

getDeltaTime

public long getDeltaTime(boolean reset)
Parameters:
reset - True if the Timer should be resetted, false otherwise
Returns:
Time in millis since last call

reset

public void reset()
Resets the tick counter