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

## org.neuroph.util.benchmark
Class Stopwatch

    java.lang.Object
      org.neuroph.util.benchmark.Stopwatch

    public class Stopwatch

extends Object

A class to help benchmark code, it simulates a real stop watch.

See Also:
  http://java.sun.com/docs/books/performance/1st_edition/html/JPMeasurement.fm.html#17818

Constructor Summary
`Stopwatch()`

Method Summary
`long` | `getElapsedTime()` Returns elapsed time in milliseconds between calls to start and stop methods If the watch has never been started, returns zero
`void` | `reset()` Resets the stopwatch (clears start and stop time)
`void` | `start()` Starts measuring time
`void` | `stop()` Stops measuring time

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 void start()

  Starts measuring time

### stop

    public void stop()

  Stops measuring time

### getElapsedTime

    public long getElapsedTime()

  Returns elapsed time in milliseconds between calls to start and stop methods If the watch has never been started, returns zero

### reset

    public void reset()

  Resets the stopwatch (clears start and stop time)

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

Copyright © 2012. All Rights Reserved.