Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## things.common.tools
Class StopWatch

    java.lang.Object
      things.common.tools.StopWatch

    public class StopWatch

extends java.lang.Object

A simple stopwatch.

Version:
  1.0

  Version History

      EPG - Initial - 18 AUG 05

Author:
  Erich P. Gatejen

Constructor Summary
`StopWatch()` Default constructor.

Method Summary
`void` | `start()` Restart the stopwatch.
`void` | `stop()` Stop the watch.
`long` | `time()` Get the time in milliseconds since the watch was started.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StopWatch

    public StopWatch()

  Default constructor. It will start the stopwatch running. (Don't worry--no CPU us used.)

Method Detail

### start

    public void start()

  Restart the stopwatch.

### time

    public long time()

  Get the time in milliseconds since the watch was started. It does not stop watch from running.

  Returns:
    the time

### stop

    public void stop()

  Stop the watch. All subsiquent calls to time will yield this moment in time, until start is called again.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Things.