|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.StopWatch
public class StopWatch
Utility class to measure elapsed time. Values are in nanoseconds.
| Field Summary | |
|---|---|
private long |
referenceTime
|
| Constructor Summary | |
|---|---|
StopWatch()
Constructor |
|
| Method Summary | |
|---|---|
long |
elapsedTime()
Returns time since last mark() call (or since construction if no mark() calls have been made), in nanoseconds. |
void |
mark()
Set the reference time to now. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long referenceTime
| Constructor Detail |
|---|
public StopWatch()
| Method Detail |
|---|
public void mark()
public long elapsedTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||