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

# cp_time_wait_until

Blocks the current thread until the specified time.

## Declaration

```occ
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.

## Mentioned in

Drawing fully immersive content using Metal
