public class ElapsedTimer
extends Object
ElapsedTimer: Utility class for keep track of the duration an object has been in existence.
| Constructor and Description |
|---|
ElapsedTimer()
Construct a new ElapsedTimer and start the clock
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getDate()
Get the date the object was created
|
String |
getDateString()
Get the date object was created as formatted String
|
long |
getTime()
Get elapsed time object in existence (milliseconds)
|
double |
getTimeSeconds()
Get elapsed time object in seconds
|
String |
getTimeString()
Get elapsed time object in existence as formatted String (Ex: 3 days 2 minutes 5 seconds)
|
public ElapsedTimer()
public java.util.Date getDate()
public String getDateString()
public long getTime()
public double getTimeSeconds()
public String getTimeString()