cp_frame_timing_get_presentation_time
Returns the time at which the system displays the frame.
Declaration
cp_time_t cp_frame_timing_get_presentation_time(cp_frame_timing_t frame_timing);Parameters
- frame_timing:
The frame’s timing information. Fetch this information using the Cp_frame_predict_timing function. After you retrieve the frame’s drawable type, get the information using Frametiming instead.
Return Value
The Mach absolute time at which the layer presents the frame.
Discussion
You can use the presentation time as a synchronization point for other parts of your app. For example, if you play an audio clip when the frame appears, configure your code to start playing the clip at the specified time.