org.mycore.services.imaging
Class Stopwatch
java.lang.Object
org.mycore.services.imaging.Stopwatch
public class Stopwatch
- extends Object
A class to help benchmark code It simulates a real stop watch
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stopwatch
public Stopwatch()
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()