---
title: "CMTimeCopyDescription(allocator:time:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimecopydescription(allocator:time:)"
---

# CMTimeCopyDescription(allocator:time:)

Creates a string representation of the time.

## Declaration

```swift
func CMTimeCopyDescription(allocator: CFAllocator?, time: CMTime) -> CFString?
```

## Parameters

- `allocator`: An allocator with which to create the description. Pass doc://com.apple.documentation/documentation/CoreFoundation/kCFAllocatorDefault to use the default allocator.
- `time`: The time to describe.

## Return Value

Return Value A string representation of the time.

## See Also

### Representing Times

- [CMTimeShow(_:)](coremedia/cmtimeshow(_:).md)
- [CMTimeCopyAsDictionary(_:allocator:)](coremedia/cmtimecopyasdictionary(_:allocator:).md)
