|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jrockit.mc.flightrecorder.util.TimeRange
public final class TimeRange
Class that represents a range. The range holds a start and an end time. The timestamps are in nanoseconds since 1970.
Field Summary |
---|
Fields inherited from interface com.jrockit.mc.flightrecorder.spi.ITimeRange |
---|
INFINITE_DURATION, INFINITE_RANGE, NEGATIVE_INFINITY, POSITIVE_INFINITY |
Constructor Summary | |
---|---|
TimeRange(long start,
long end)
Constructs a time range The end time must not come before the start time |
Method Summary | |
---|---|
long |
getDuration()
Returns the duration of the range. |
long |
getEndTimestamp()
Returns the end time of the range. |
long |
getStartTimestamp()
Returns the start time of the range. |
java.lang.String |
toString()
Returns a textual representation of the range |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeRange(long start, long end)
start
- the start time, in nanoseconds since 1970.end
- the end time, in nanoseconds since 1970.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public long getDuration()
getDuration
in interface ITimeRange
public long getEndTimestamp()
getEndTimestamp
in interface ITimeRange
public long getStartTimestamp()
getStartTimestamp
in interface ITimeRange
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |