---
title: "convertHostTimeToSystemUnits(_:)"
framework: coremedia
role: symbol
role_heading: Type Method
path: "coremedia/cmclock/converthosttimetosystemunits(_:)"
---

# convertHostTimeToSystemUnits(_:)

Converts a host time from a time structure to the host time’s native units.

## Declaration

```swift
static func convertHostTimeToSystemUnits(_ hostTime: CMTime) -> UInt64
```

## Parameters

- `hostTime`: The host time to convert.

## See Also

### Converting Time

- [convertSystemUnitsToHostTime(_:)](coremedia/cmclock/convertsystemunitstohosttime(_:).md)
