de.jstacs.utils
Class Time

java.lang.Object
  extended by de.jstacs.utils.Time
Direct Known Subclasses:
RealTime, UserTime

public abstract class Time
extends Object

This interface is the framework for stopping the time of anything.

Author:
Jens Keilwagen

Constructor Summary
Time()
          Creates a new time object and starts the clock.
 
Method Summary
abstract  double getElapsedTime()
          Returns the elapsed time since invoking the constructor.
abstract  void reset()
          Restarts the time stopping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Time

public Time()
Creates a new time object and starts the clock.

Method Detail

getElapsedTime

public abstract double getElapsedTime()
Returns the elapsed time since invoking the constructor.

Returns:
the elapsed time in seconds

reset

public abstract void reset()
Restarts the time stopping.