|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.DSRG.xmldb.Utils.Timer
It used to calculate the time between two calls. It will simulates the sports timer.
Field Summary | |
(package private) java.lang.String |
name
Keep the name of this timer. |
(package private) boolean |
start
Keep track of the status of the timer. |
(package private) long |
start_millis
|
(package private) long |
stop_millis
|
(package private) long |
stored_millis
|
Constructor Summary | |
Timer()
Create a timer object. |
|
Timer(java.lang.String name)
Create a timer object with a name. |
Method Summary | |
long |
get()
Get the time passed. |
static java.lang.String |
getSystemTime()
Give back System Time. |
void |
reset()
Reset the timer. |
long |
start_stop()
Start or stop the timer. |
java.lang.String |
toString()
Return the time passed in a specific format. |
Methods inherited from class java.lang.Object |
|
Field Detail |
long start_millis
long stop_millis
long stored_millis
java.lang.String name
boolean start
Constructor Detail |
public Timer()
public Timer(java.lang.String name)
Method Detail |
public long start_stop()
public void reset()
public long get()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getSystemTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |