|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placidus.performance.StopWatch
public class StopWatch
This class is for measuring times.
| Constructor Summary | |
|---|---|
StopWatch()
StopWatch automatically starts at new instance |
|
| Method Summary | |
|---|---|
protected long |
getCurrentTime()
Returns new timestamp |
long |
getTime()
to get current time (interim), no reset will be performed. |
void |
printTime()
prints current time to System.out (toString) |
void |
reset()
to reset stopwatch to 0 |
java.lang.String |
toString()
to get current time (interim), no reset will be performed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StopWatch()
| Method Detail |
|---|
public void reset()
public long getTime()
protected long getCurrentTime()
public java.lang.String toString()
toString in class java.lang.Objectpublic void printTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||