org.encog.util
Class Stopwatch

java.lang.Object
  extended by org.encog.util.Stopwatch

public class Stopwatch
extends Object

A stopwatch, meant to emulate the C# Stopwatch class.


Constructor Summary
Stopwatch()
          Construct a stopwatch.
 
Method Summary
 long getElapsedMilliseconds()
           
 long getElapsedTicks()
           
 void reset()
          Reset the stop watch.
 void start()
          Start the stop watch.
 void stop()
          Stop the stopwatch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stopwatch

public Stopwatch()
Construct a stopwatch.

Method Detail

getElapsedMilliseconds

public long getElapsedMilliseconds()
Returns:
Elapsed time in milli's.

getElapsedTicks

public long getElapsedTicks()
Returns:
Elapsed time in ticks.

reset

public void reset()
Reset the stop watch.


start

public void start()
Start the stop watch.


stop

public void stop()
Stop the stopwatch.



Copyright © 2014. All Rights Reserved.