com.threed.jpct.skeleton.util
Class Timer

java.lang.Object
  extended by com.threed.jpct.skeleton.util.Timer

public class Timer
extends java.lang.Object

A simple timer implementation, to count the time in seconds from the last reset. TODO: Use a timing source with a better granularity(like gage?).

Author:
mcgreevyj

Constructor Summary
Timer()
           
 
Method Summary
 double getTime()
          Returns the seconds that have elapsed since the last reset.
 void reset()
          Resets the timer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Method Detail

getTime

public double getTime()
Returns the seconds that have elapsed since the last reset.

Returns:
A double containing the seconds.

reset

public void reset()
Resets the timer.