|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.commons.lang.time.StopWatch
patterntesting.runtime.log.LogWatch
public final class LogWatch
The Class LogWatch is a simple stop watch to be able to measure and log code segments which need a little bit longer.
| Constructor Summary | |
|---|---|
LogWatch()
Instantiates a new log watch. |
|
| Method Summary | |
|---|---|
long |
getElapsedTime()
Gets the elapsed time from the start call. |
long |
getNanoTime()
Deprecated. use getTimeInNanos() |
double |
getTimeInMillis()
Gets the elapsed time from the start call in milli seconds. |
long |
getTimeInNanos()
Gets the elapsed time from the start call in nano seconds. |
void |
reset()
Reset. |
void |
start()
Start. |
void |
stop()
Stop. |
String |
toString()
To string. |
| Methods inherited from class org.apache.commons.lang.time.StopWatch |
|---|
getSplitTime, getStartTime, getTime, resume, split, suspend, toSplitString, unsplit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogWatch()
| Method Detail |
|---|
public void start()
start in class org.apache.commons.lang.time.StopWatchStopWatch.start()public void stop()
stop in class org.apache.commons.lang.time.StopWatchStopWatch.stop()public void reset()
reset in class org.apache.commons.lang.time.StopWatchStopWatch.reset()public long getElapsedTime()
@Deprecated public long getNanoTime()
getTimeInNanos()
public long getTimeInNanos()
This method was called "getNanoTime" before but was now named in
"getTimeInNanons" to fit better in the naming schema - there is a similar
method getTimeInMillis().
public double getTimeInMillis()
public String toString()
toString in class org.apache.commons.lang.time.StopWatchObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||