|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSystemTimer
public class SystemTimer
A simple timer to gauge elapsed time.
Constructor Summary | |
---|---|
SystemTimer()
|
Method Summary | |
---|---|
double |
getDuration()
Returns the elapsed time since the last start call in seconds. |
void |
start()
Begins or resets the timer. |
java.lang.String |
toString()
Returns a string representing the duration of time since the start
method was called in the format "HH:MM:SS". |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SystemTimer()
Method Detail |
---|
public void start()
public double getDuration()
start
call in seconds.
start
.public java.lang.String toString()
start
method was called in the format "HH:MM:SS".
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |