org.mycore.services.imaging
Class Stopwatch

java.lang.Object
  extended by org.mycore.services.imaging.Stopwatch

public class Stopwatch
extends Object

A class to help benchmark code It simulates a real stop watch


Constructor Summary
Stopwatch()
           
 
Method Summary
 long getElapsedTime()
          returns elapsed time in milliseconds if the watch has never been started then return zero
 Stopwatch reset()
           
 Stopwatch start()
           
 Stopwatch stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stopwatch

public Stopwatch()
Method Detail

start

public Stopwatch start()

stop

public Stopwatch stop()

getElapsedTime

public long getElapsedTime()
returns elapsed time in milliseconds if the watch has never been started then return zero


reset

public Stopwatch reset()