Instance Property

duration

The time interval between screen refresh updates.

Declaration

var duration: CFTimeInterval { get }

Discussion

The value for duration is undefined before the target’s selector has been called at least once. Your application can calculate the amount of time it has to render each frame by multiplying duration by frameInterval.

See Also

Configuring the Display Link

var preferredFramesPerSecond: Int

The preferred frame rate for the display link callback.

var frameInterval: Int

The number of frames that must pass before the display link notifies the target again.

Deprecated
var isPaused: Bool

A Boolean value that states whether the display link’s notifications to the target are suspended.

var timestamp: CFTimeInterval

The time value associated with the last frame that was displayed.

var targetTimestamp: CFTimeInterval

The time value associated with the next frame that was displayed.