org.encog.util
Class Stopwatch
- java.lang.Object
-
- org.encog.util.Stopwatch
-
public class Stopwatch extends java.lang.ObjectA stopwatch, meant to emulate the C# Stopwatch class.
-
-
Constructor Summary
Constructors Constructor and Description Stopwatch()Construct a stopwatch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description longgetElapsedMilliseconds()longgetElapsedTicks()voidreset()Reset the stop watch.voidstart()Start the stop watch.voidstop()Stop the stopwatch.java.lang.StringtoString()
-
-
-
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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG