com.croftsoft.core.util
Class Stopwatch
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stopwatch
public Stopwatch()
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 Core Javadoc (2008-09-28 20:58:02)