---
title: CMClockGetHostTimeClock()
framework: coremedia
role: symbol
role_heading: Function
path: coremedia/cmclockgethosttimeclock()
---

# CMClockGetHostTimeClock()

Returns a reference to the singleton clock that reflects the host time.

## Declaration

```swift
func CMClockGetHostTimeClock() -> CMClock
```

## Discussion

Discussion In macOS, the host time clock uses mach_absolute_time but returns a value with a large integer timescale (e.g. nanoseconds).
