|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neuroph.util.benchmark.Stopwatch
public class Stopwatch
A class to help benchmark code, it simulates a real stop watch.
| 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 |
|---|
public Stopwatch()
| Method Detail |
|---|
public void start()
public void stop()
public long getElapsedTime()
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||