Skip to main content
Version: 14 Oct 2024

CameraPerformanceTracker

Public Methods

void AddSample

public void AddSample(
long timestamp
)

Parameters

TypeNameDescription
longtimestamp

CameraPerformanceTracker Create

public static CameraPerformanceTracker Create()

long ReadSample

public long ReadSample(
int age
)

Parameters

TypeNameDescription
intage

int ReadSamples

public int ReadSamples(
NativeArray< long > array
)

Parameters

TypeNameDescription
NativeArray< long >array

Public Attributes

HasSufficientSamples


public bool HasSufficientSamples => lastSample > SAMPLE_MASK;


NUM_SAMPLES


public const int NUM_SAMPLES = 64;


SAMPLE_MASK


public const int SAMPLE_MASK = NUM_SAMPLES - 1;