Contents

duration

The time interval between screen refresh updates.

Declaration

var duration: CFTimeInterval { get }

Discussion

This value is in an undefined state until the system calls the target’s selector at least once.

You calculate the expected amount of time your app has to render each frame by using targetTimestamp-timestamp. Use targetTimestamp-CACurrentMediaTime() to calculate the actual amount of time.

See Also

Configuring a Display Link