<!--
{
  "availability" : [
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMClockCreateGenlockClock",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMClockCreateGenlockClock"
  },
  "title" : "CMClockCreateGenlockClock"
}
-->

# CMClockCreateGenlockClock

Returns a clock whose time is based on genlock when the system is synchronized to an external genlock signal, and on host time otherwise.

```
extern CMClockRefCMClockCreateGenlockClock();
```

## Discussion

When the system is not synchronized to an external genlock signal, the returned clock will provide a time based on the host time clock.
When the system is synchronized to an external genlock signal, the returned clock will provide a time based on the genlock signal.
Use `CMIsAnyDisplaySynchronizedToLockedGenlockSignal` to determine whether the system is currently synchronized to an external genlock signal.
The caller is responsible for releasing the returned clock when it is no longer needed.
While the clock object persists, system energy use may be elevated (to monitor the genlock signal).
When a genlock clock is already in use, further calls to this function may return the same clock object.

---

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)