Språk

SurfaceControl.JankData.PresentTimeNanos Property

Definition

Returns the time in nanoseconds the frame was actually presented.

public virtual long PresentTimeNanos { [Android.Runtime.Register("getPresentTimeNanos", "()J", "GetGetPresentTimeNanosHandler", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getPresentTimeNanos", "()J", "GetGetPresentTimeNanosHandler", ApiSince=37)>]
member this.PresentTimeNanos : int64

Property Value

the present time in ns

Attributes

Remarks

Returns the time in nanoseconds the frame was actually presented. If the frame was not presented (for example, if it was replaced by a new frame before being sent to the display), this value will be PRESENTATION_TIME_UNSET. If the presentation status of the frame is unknown (for example, if the device does not support display present fences), this value will be PRESENTATION_TIME_UNKNOWN.

Android reference for android.view.SurfaceControl.JankData.getPresentTimeNanos.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to