<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMClock/convertHostTimeToSystemUnits(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Media",
      "CoreMedia"
    ],
    "preciseIdentifier" : "s:So10CMClockRefa9CoreMediaE28convertHostTimeToSystemUnitsys6UInt64VSo6CMTimeaFZ"
  },
  "title" : "convertHostTimeToSystemUnits(_:)"
}
-->

# convertHostTimeToSystemUnits(_:)

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

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

## Parameters

`hostTime`

The host time to convert.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)