---
title: "translateTime(_:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwaredevice/translatetime(_:)"
---

# translateTime(_:)

Translates the time in the device’s time base from one representation to another. Note that the device has to be running

## Declaration

```swift
func translateTime(_ timestamp: AudioTimeStamp) throws -> AudioTimeStamp
```

## Parameters

- `timestamp`: An AudioTimeStamp containing the time to be translated.

## Return Value

Return Value An AudioTimeStamp containing the translated time.
