---
title: cp_frame_timing_get_presentation_time
framework: compositorservices
role: symbol
role_heading: Function
path: compositorservices/cp_frame_timing_get_presentation_time
---

# cp_frame_timing_get_presentation_time

Returns the time at which the system displays the frame.

## Declaration

```occ
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 doc://com.apple.compositorservices/documentation/CompositorServices/cp_frame_predict_timing function. After you retrieve the frame’s drawable type, get the information using doc://com.apple.compositorservices/documentation/CompositorServices/LayerRenderer/Drawable/frameTiming instead.

## Return Value

Return Value The Mach absolute time at which the layer presents the frame.

## Discussion

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.

## See Also

### Getting timing information

- [cp_frame_predict_timing](compositorservices/cp_frame_predict_timing.md)
- [cp_frame_timing_get_optimal_input_time](compositorservices/cp_frame_timing_get_optimal_input_time.md)
- [cp_frame_timing_get_rendering_deadline](compositorservices/cp_frame_timing_get_rendering_deadline.md)
- [cp_frame_timing_t](compositorservices/cp_frame_timing_t.md)
