---
title: clock
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcaptureinput/port/clock
---

# clock

An object that represents the capture device’s clock.

## Declaration

```swift
var clock: CMClock? { get }
```

## Discussion

Discussion The value of this property is readonly and may not reflect the actual clock in the capture device.

## See Also

### Inspecting an input port

- [isEnabled](avfoundation/avcaptureinput/port/isenabled.md)
- [mediaType](avfoundation/avcaptureinput/port/mediatype.md)
- [formatDescription](avfoundation/avcaptureinput/port/formatdescription.md)
- [sourceDeviceType](avfoundation/avcaptureinput/port/sourcedevicetype.md)
- [sourceDevicePosition](avfoundation/avcaptureinput/port/sourcedeviceposition.md)
