com.croftsoft.core.util
Class Stopwatch

java.lang.Object
  extended by com.croftsoft.core.util.Stopwatch
All Implemented Interfaces:
Resumable, Startable, Stoppable

public final class Stopwatch
extends Object
implements Resumable

Used for timing events with millisecond precision.

Since:
2001-07-03
Version:
2001-07-03
Author:
David Wallace Croft

Constructor Summary
Stopwatch()
           
 
Method Summary
 long getElapsedTime()
          Returns the elapsed time in milliseconds.
 void reset()
           
 void start()
           
 void 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

getElapsedTime

public long getElapsedTime()
Returns the elapsed time in milliseconds.


reset

public void reset()

start

public void start()
Specified by:
start in interface Startable

stop

public void stop()
Specified by:
stop in interface Stoppable

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)