<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.4.0 - 15.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVDisplayLinkTranslateTime(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVDisplayLinkTranslateTime"
  },
  "title" : "CVDisplayLinkTranslateTime(_:_:_:)"
}
-->

# CVDisplayLinkTranslateTime(_:_:_:)

Translates the time in the display link’s time base from one representation to another.

```
func CVDisplayLinkTranslateTime(_ displayLink: CVDisplayLink, _ inTime: UnsafePointer<CVTimeStamp>, _ outTime: UnsafeMutablePointer<CVTimeStamp>) -> CVReturn
```

## Parameters

`displayLink`

The display link whose time base should be used to do the translation.

`inTime`

A pointer to a `CVTimeStamp` structure containing the source time to translate.

`outTime`

A pointer to a `CVTimeStamp` structure into which the target time is written. Before calling, you must set the version field (currently `0`) to indicate which version of the structure you want. You should also set the `flags` field to specify which representations to translate to.

## Return Value

A Core Video result code. See [Core Video Constants](/documentation/CoreVideo/core-video-constants) for possible values.

## Discussion

Note that the display link has to be running for this call to succeed.

---

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)