|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.time.DurationCapture.Interval
public static class DurationCapture.Interval
Saves the interval points and their data like name and time.
| Field Summary | |
|---|---|
protected long |
duration
|
protected Object |
key
|
protected long |
startTime
|
protected long |
stopTime
|
| Constructor Summary | |
|---|---|
DurationCapture.Interval()
|
|
| Method Summary | |
|---|---|
protected void |
calculateDurationInMilliseconds()
Calculates the duration field based on the startTime and stopTime. |
long |
getDurationInMilliseconds()
|
long |
getInterimTimeInMilliseconds()
Returns the duration in milliseconds which has passed since the start of the time measurement and now. |
Object |
getKey()
|
void |
reset()
Resets the internal timer of this time measurement for this DurationCapture.Interval. |
protected DurationCapture.Interval |
setKey(Object key)
|
void |
startMeasurement()
Starts the measurement of time for this DurationCapture.Interval. |
void |
stopMeasurement()
Stops the time measurement for this DurationCapture.Interval. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object key
protected long duration
protected long startTime
protected long stopTime
| Constructor Detail |
|---|
public DurationCapture.Interval()
| Method Detail |
|---|
public long getInterimTimeInMilliseconds()
public void startMeasurement()
DurationCapture.Interval.
public void stopMeasurement()
DurationCapture.Interval.
public void reset()
DurationCapture.Interval.
protected void calculateDurationInMilliseconds()
duration field based on the startTime and stopTime.
protected DurationCapture.Interval setKey(Object key)
key -
public long getDurationInMilliseconds()
public Object getKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||