---
title: "CMClockGetTime(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmclockgettime(_:)"
---

# CMClockGetTime(_:)

Returns the current time from a clock.

## Declaration

```swift
func CMClockGetTime(_ clock: CMClock) -> CMTime
```

## Parameters

- `clock`: The clock to retrieve the current time from.

## See Also

### Accessing and Converting Time

- [CMClockGetAnchorTime(_:clockTimeOut:referenceClockTimeOut:)](coremedia/cmclockgetanchortime(_:clocktimeout:referenceclocktimeout:).md)
- [CMClockConvertHostTimeToSystemUnits(_:)](coremedia/cmclockconverthosttimetosystemunits(_:).md)
- [CMClockMakeHostTimeFromSystemUnits(_:)](coremedia/cmclockmakehosttimefromsystemunits(_:).md)
