net.sf.cindy.util
Class ElapsedTime

java.lang.Object
  extended by net.sf.cindy.util.ElapsedTime

public final class ElapsedTime
extends java.lang.Object

Elapsed time. Use nano time if possible, adjust system time may cause System.currentTimeMillis() backward.

Version:
$id$
Author:
Roger Chen

Constructor Summary
ElapsedTime()
           
 
Method Summary
 long getElapsedTime()
          Get elapsed time in milliseconds.
 long reset()
          Reset start time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElapsedTime

public ElapsedTime()
Method Detail

getElapsedTime

public long getElapsedTime()
Get elapsed time in milliseconds.

Returns:
elapsed time

reset

public long reset()
Reset start time.

Returns:
elapsed time