com.timeindexing.time
Interface UnitBasedTimestamp

All Superinterfaces:
Timestamp, Value
All Known Implementing Classes:
MPEGPresentationTimestamp

public interface UnitBasedTimestamp
extends Timestamp

A unit based timestamp. For all Timestamps that are based on elpased units rather than elapsed time. We need to know the no. of units per second.


Field Summary
 
Fields inherited from interface com.timeindexing.time.Timestamp
ELAPSED_MICROSECOND, ELAPSED_MICROSECOND_SIGN, ELAPSED_MILLISECOND, ELAPSED_MILLISECOND_SIGN, ELAPSED_NANOSECOND, ELAPSED_NANOSECOND_SIGN, ELAPSED_SECOND, ELAPSED_SECOND_SIGN, ELAPSED_UNITS, ELAPSED_UNITS_SIGN, EXTENDED, EXTENDED_2, EXTENDED_3, EXTENDED_4, MICROSECOND, MICROSECOND_SIGN, MILLISECOND, MILLISECOND_SIGN, NANOSECOND, NANOSECOND_SIGN, SECOND, SECOND_SIGN, SPARE_3E, SPARE_3E_SIGN, SPARE_FD, SPARE_FD_SIGN, SPARE_FE, SPARE_FE_SIGN, TOP_2_MASK, TOP_4_MASK, TOP_6_MASK, TOP_8_MASK, ZERO
 
Method Summary
 long getUnits()
          Get the no of units that have elapsed.
 long getUnitsPerSecond()
          Get the no of units per second, for this kind of timestamp.
 
Methods inherited from interface com.timeindexing.time.Timestamp
getNanoSeconds, getSeconds
 
Methods inherited from interface com.timeindexing.basic.Value
value
 

Method Detail

getUnits

public long getUnits()
Get the no of units that have elapsed.


getUnitsPerSecond

public long getUnitsPerSecond()
Get the no of units per second, for this kind of timestamp.