---
title: "CVDisplayLinkTranslateTime(_:_:_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvdisplaylinktranslatetime(_:_:_:)"
---

# CVDisplayLinkTranslateTime(_:_:_:)

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

## Declaration

```swift
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

Return Value A Core Video result code. See Core Video Constants for possible values.

## Discussion

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

## See Also

### Inspecting Display Links

- [CVDisplayLinkGetCurrentCGDisplay(_:)](corevideo/cvdisplaylinkgetcurrentcgdisplay(_:).md)
- [CVDisplayLinkGetCurrentTime(_:_:)](corevideo/cvdisplaylinkgetcurrenttime(_:_:).md)
- [CVDisplayLinkGetActualOutputVideoRefreshPeriod(_:)](corevideo/cvdisplaylinkgetactualoutputvideorefreshperiod(_:).md)
- [CVDisplayLinkGetNominalOutputVideoRefreshPeriod(_:)](corevideo/cvdisplaylinkgetnominaloutputvideorefreshperiod(_:).md)
- [CVDisplayLinkGetOutputVideoLatency(_:)](corevideo/cvdisplaylinkgetoutputvideolatency(_:).md)
- [CVDisplayLinkIsRunning(_:)](corevideo/cvdisplaylinkisrunning(_:).md)
- [CVDisplayLinkGetTypeID()](corevideo/cvdisplaylinkgettypeid().md)
