---
title: "clock(forUID:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwareplugin/clock(foruid:)"
---

# clock(forUID:)

## Declaration

```swift
func clock(forUID UID: String) throws -> AudioHardwareClock?
```

## Parameters

- `UID`: The String UID of the clock object to obtain.

## Return Value

Return Value The AudioHardwareClock that corresponds with the given UID, or nil if the UID does not correspond with any box object.
