|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwater.Timer
public class Timer
Simple Timer class.
Field Summary | |
---|---|
long |
_nanos
|
long |
_start
|
Constructor Summary | |
---|---|
Timer()
|
Method Summary | |
---|---|
long |
nanos()
|
java.lang.String |
startAsShortString()
return the start time of this timer. |
java.lang.String |
startAsString()
return the start time of this timer. |
long |
time()
Return the difference between when the timer was created and the current time. |
java.lang.String |
toString()
Return the difference between when the timer was created and the current time as a string along with the time of creation in date format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final long _start
public final long _nanos
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public long time()
public long nanos()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String startAsString()
public java.lang.String startAsShortString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |