Instance Property

presentedTime

The host time, in seconds, when the drawable was displayed onscreen.

Required.

Declaration

var presentedTime: CFTimeInterval { get }

Discussion

Typically, you query this property in a callback method. See addPresentedHandler(_:).

The property value is 0.0 if the drawable hasn’t been presented or if its associated frame was dropped.

See Also

Getting Presentation Information

func addPresentedHandler(MTLDrawablePresentedHandler)

Registers a block of code to be called immediately after the drawable is presented.

Required.

typealias MTLDrawablePresentedHandler

A block of code invoked after a drawable is presented.