<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/cp_frame_timing_get_presentation_time",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compositor Services"
    ],
    "preciseIdentifier" : "c:@F@cp_frame_timing_get_presentation_time"
  },
  "title" : "cp_frame_timing_get_presentation_time"
}
-->

# cp_frame_timing_get_presentation_time

Returns the time at which the system displays the frame.

```
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`](/documentation/CompositorServices/cp_frame_predict_timing) function. After you retrieve the frame’s drawable type, get the information using [`frameTiming`](/documentation/CompositorServices/LayerRenderer/Drawable/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)