---
title: duration
framework: coremedia
role: symbol
role_heading: Instance Property
path: coremedia/cmsampletiminginfo/duration
---

# duration

The duration of the sample.

## Declaration

```swift
var duration: CMTime
```

## Discussion

Discussion If a single struct applies to each of the samples, they all have this duration.

## See Also

### Properties

- [decodeTimeStamp](coremedia/cmsampletiminginfo/decodetimestamp.md)
- [presentationTimeStamp](coremedia/cmsampletiminginfo/presentationtimestamp.md)
