de.jstacs.utils
Class RealTime

java.lang.Object
  extended by de.jstacs.utils.Time
      extended by de.jstacs.utils.RealTime

public class RealTime
extends Time

This is a very simple implementation of Time. It only uses the system time accessible by Java.

Author:
Jens Keilwagen

Constructor Summary
RealTime()
           
 
Method Summary
 double getElapsedTime()
          Returns the elapsed time since invoking the constructor.
 void reset()
          Restarts the time stopping.
 
Methods inherited from class de.jstacs.utils.Time
getTimeInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealTime

public RealTime()
Method Detail

getElapsedTime

public double getElapsedTime()
Description copied from class: Time
Returns the elapsed time since invoking the constructor.

Specified by:
getElapsedTime in class Time
Returns:
the elapsed time in seconds

reset

public void reset()
Description copied from class: Time
Restarts the time stopping.

Specified by:
reset in class Time