<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTimeMultiply(_:multiplier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMTimeMultiply"
  },
  "title" : "CMTimeMultiply(_:multiplier:)"
}
-->

# CMTimeMultiply(_:multiplier:)

Returns the result of multiplying a time by an integer multiplier.

```
func CMTimeMultiply(_ time: CMTime, multiplier: Int32) -> CMTime
```

## Parameters

`time`

A time value to multiply.

`multiplier`

A 32-bit integer multiplier value.

## Return Value

A time structure that represents the product of the multiplied time.

## Discussion

The result has the same timescale as the time argument. If the result overflows, the system repeatedly halves the result until no overflow occurs. The system applies the default rounding method when converting the result to this timescale. If the result’s value still overflows when its timescale is `1`, then the result is positive or negative infinity, depending on the direction of the overflow. If rounding occurs for any reason, the system sets the result’s [`hasBeenRounded`](/documentation/CoreMedia/CMTimeFlags/hasBeenRounded) flag. It also sets this flag if the time argument has [`hasBeenRounded`](/documentation/CoreMedia/CMTimeFlags/hasBeenRounded) set. If the `time` operand is invalid, the result is invalid. If the time operand is valid but infinite, the result is infinite and of an appropriate sign, based on the signs of both operands. If the time operand is valid, but indefinite, the result is indefinite.

---

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)