|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jdc.dts.ElapsedTime
Class ElapsedTime represents the elapsed time between two events.
Reference: http://www.javaworld.com/javaworld/jw-03-2001/jw-0330-time.html
| Constructor Summary | |
ElapsedTime()
Constructs a new ElapsedTime object. |
|
| Method Summary | |
void |
end()
Ends, or stops, the elapsed timer. |
void |
end(Date date)
Ends the elapsed timer for the specified date. |
int |
getDays()
Returns the number of days in the elapsed time. |
int |
getHours()
Returns the number of hours in the elapsed time. |
int |
getMillis()
Returns the number of milliseconds in the elapsed time. |
int |
getMinutes()
Returns the number of minutes in the elapsed time. |
int |
getSeconds()
Returns the number of seconds in the elapsed time. |
long |
longValue()
Returns the elapsed time in milliseconds. |
static void |
main(String[] args)
Executes the unit tests for the ElapsedTime class. |
void |
start()
Starts the elapsed timer. |
void |
start(Date date)
Starts the elapsed timer for the specified date.. |
String |
toString()
Returns a String representation of this ElapsedTime object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ElapsedTime()
ElapsedTime object.
| Method Detail |
public void end()
public void end(Date date)
public int getDays()
public int getHours()
public int getMillis()
public int getMinutes()
public int getSeconds()
public long longValue()
public void start()
public void start(Date date)
public String toString()
String representation of this ElapsedTime object.
toString in class ObjectString representation of this ElapsedTime object.public static void main(String[] args)
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||