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

# cp_time_wait_until

Blocks the current thread until the specified time.

```
void cp_time_wait_until(cp_time_t time);
```

## Parameters

`time`

The Mach absolute time at which to wake up the thread.
Typically, you supply one of the predicted times associated with the current frame,
such as the optimal input 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)