public interface ITimeReference
Modifier and Type | Method and Description |
---|---|
long |
getClockFrequency()
Returns the clock frequency, i.e. the number of unique timestamps
within one second.
|
long |
getInitialTime()
Returns the time that corresponds to beginning of the time frame,
expressed as milliseconds since the time 00:00:00 UTC on January 1, 1970.
|
long |
getInitialTimestamp()
Returns the timestamp that corresponds to the beginning of the
time frame (i.e. the beginning of the recording session).
|
long |
toAbsoluteMilliseconds(long timestamp)
Converts a time stamp expressed as ticks to a value expressed as milliseconds
since the beginning of the time frame.
|
long |
toAbsoluteTimestamp(long millis)
Converts a time expressed as milliseconds since the beginning of the
time frame to a time stamp in ticks.
|
long |
toRelativeMilliseconds(long timestamp)
Converts a duration expressed as ticks to a duration expressed
in milliseconds.
|
long |
toRelativeTimestamp(long millis)
Converts a duration in milliseconds to a duration expressed
as ticks.
|
long getInitialTimestamp()
long getInitialTime()
long getClockFrequency()
long toAbsoluteMilliseconds(long timestamp)
timestamp
- A time stamp.long toRelativeMilliseconds(long timestamp)
timestamp
- A duration expressed as ticks.long toAbsoluteTimestamp(long millis)
millis
- A time in milliseconds since the beginning of the
time frame.long toRelativeTimestamp(long millis)
millis
- A duration in milliseconds.© Copyright IBM Corp. 2013. All rights reserved.