public class TimestampUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
MAX_TIMESTAMP_VALUE |
static long |
ROLLOVER_DELTA_VALUE |
Constructor and Description |
---|
TimestampUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isNewerTimestamp(long t1,
long t2)
Returns true if t1 is newer than t2,
taking into account rollover.
|
static long |
latestTimestamp(long timestamp1,
long timestamp2)
webrtc/modules/include/module_common_types.h
|
static long |
subtractAsUnsignedInt32(long t1,
long t2)
Calculate the subtraction result of two long input as unsigned 32bit int.
|
public static final long MAX_TIMESTAMP_VALUE
public static final long ROLLOVER_DELTA_VALUE
public static long subtractAsUnsignedInt32(long t1, long t2)
t1
- the first timestampt2
- the second timestamppublic static boolean isNewerTimestamp(long t1, long t2)
t1
- t2
- public static long latestTimestamp(long timestamp1, long timestamp2)
timestamp1
- timestamp2
-
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.