ClockType

public class ClockType extends Object
implements Parcelable

ClockType informs Stream Protect what is the clock of the packet receiving time (microseconds) in FrameInfo from client app. A ClockType instance is a Parcelable. Check SystemClock for more details.

Constant Summary

int BOOTTIME Monotonic clock since system booted, for example System.elapsedRealtimeNanos() / 1000.
int MONOTONIC Monotonic clock since system booted, for example System.nanoTime() / 1000.
int REALTIME Standard clock since the epoch, for example System.currentTimeMillis() * 1000.

Inherited Constant Summary

Field Summary

public static final Creator<ClockType> CREATOR

Public Constructor Summary

ClockType(int clockType)
Specifies ClockType being used for timing in FrameInfo.

Public Method Summary

int
getClockType()
Extracts ClockType.
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Constants

public static final int BOOTTIME

Monotonic clock since system booted, for example System.elapsedRealtimeNanos() / 1000. This includes the deep sleep.

Constant Value: 2

public static final int MONOTONIC

Monotonic clock since system booted, for example System.nanoTime() / 1000. It stops when the system enters deep sleep. We recommend to use this, even though the SDK supports other types.

Constant Value: 1

public static final int REALTIME

Standard clock since the epoch, for example System.currentTimeMillis() * 1000.

Constant Value: 0

Fields

public static final Creator<ClockType> CREATOR

Public Constructors

public ClockType (int clockType)

Specifies ClockType being used for timing in FrameInfo.

Public Methods

public int getClockType ()

Extracts ClockType.

public String toString ()

public void writeToParcel (Parcel dest, int flags)