Class SystemTimer

java.lang.Object
  extended by SystemTimer

public class SystemTimer
extends java.lang.Object

A simple timer to gauge elapsed time.


Constructor Summary
SystemTimer()
           
 
Method Summary
 double getDuration()
          Returns the elapsed time since the last start call in seconds.
 void start()
          Begins or resets the timer.
 java.lang.String toString()
          Returns a string representing the duration of time since the start method was called in the format "HH:MM:SS".
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemTimer

public SystemTimer()
Method Detail

start

public void start()
Begins or resets the timer.


getDuration

public double getDuration()
Returns the elapsed time since the last start call in seconds.

Returns:
The number of seconds since the last call to start.

toString

public java.lang.String toString()
Returns a string representing the duration of time since the start method was called in the format "HH:MM:SS".

Overrides:
toString in class java.lang.Object