31 #include <com/avpkit/core/ITimeValue.h>
33 namespace com {
namespace avpkit {
namespace core {
37 VS_JNIUTILS_REFCOUNTED_OBJECT_PRIVATE_MAKE(
TimeValue);
39 virtual int64_t
get(Unit unit);
44 static TimeValue* make(int64_t value, Unit unit);
46 static inline int32_t compare(int64_t thisValue, int64_t thatValue)
49 int64_t adjustment = 1;
50 const static int64_t sMaxDistance = LLONG_MAX/2;
51 if ((thisValue > sMaxDistance && thatValue <= -sMaxDistance) ||
52 (thatValue > sMaxDistance && thisValue <= -sMaxDistance))
57 if (thisValue < thatValue)
59 else if (thisValue > thatValue)
70 void set(int64_t value, Unit unit);
Time (duration) values with units.
virtual int32_t compareTo(ITimeValue *other)
Compare this timeValue to another.
virtual int64_t get(Unit unit)
Get the value of this ITimeValue, in the specified Unit.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...