---
title: "CMTimeMultiply(_:multiplier:)"
framework: Core Media
role: symbol
role_heading: Function
platforms: [iOS 4.0+, iPadOS 4.0+, Mac Catalyst 13.1+, macOS 10.7+, tvOS 9.0+, visionOS 1.0+, watchOS 6.0+]
path: "coremedia/cmtimemultiply(_:multiplier:)"
---

# CMTimeMultiply(_:multiplier:)

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

## Declaration

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

## Parameters

- `time`: A time value to multiply.
- `multiplier`: A 32-bit integer multiplier value.

## Return Value

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

## Discussion

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 flag. It also sets this flag if the time argument has 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.

## See Also

### Performing Time Calculations

- [CMTimeAdd(_:_:)](coremedia/cmtimeadd(_:_:).md)
- [CMTimeSubtract(_:_:)](coremedia/cmtimesubtract(_:_:).md)
- [CMTimeMultiplyByFloat64(_:multiplier:)](coremedia/cmtimemultiplybyfloat64(_:multiplier:).md)
- [CMTimeMultiplyByRatio(_:multiplier:divisor:)](coremedia/cmtimemultiplybyratio(_:multiplier:divisor:).md)
