---
title: "durationTime(forEffect:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fxtimingapi_v4/durationtime(foreffect:)"
---

# durationTime(forEffect:)

Provides the duration time for the effect.

## Declaration

```swift
func durationTime(forEffect duration: UnsafeMutablePointer<CMTime>!)
```

## Parameters

- `duration`: The duration time for the effect, expressed in CMTime.

## Mentioned in

Understanding time in FxPlug

## Discussion

Discussion In Motion, the value this method provides specifies the duration of the effect in the project. In Final Cut Pro, because the effects you use in a template don’t need to cover the whole effect source clip, this value represents the duration of the effect inside the template, not the duration of the template when the user applies it to a clip on the timeline. However, in most use-cases the effect duration is equal to the template duration.

## See Also

### Accessing Timing Values

- [frameDuration(_:)](professional_video_applications/fxtimingapi_v4/frameduration(_:).md)
- [sampleDuration(_:)](professional_video_applications/fxtimingapi_v4/sampleduration(_:).md)
- [startTime(forEffect:)](professional_video_applications/fxtimingapi_v4/starttime(foreffect:).md)
- [startTimeOfInput(toFilter:)](professional_video_applications/fxtimingapi_v4/starttimeofinput(tofilter:).md)
- [durationTimeOfInput(toFilter:)](professional_video_applications/fxtimingapi_v4/durationtimeofinput(tofilter:).md)
- [start(_:ofImageParameter:)](professional_video_applications/fxtimingapi_v4/start(_:ofimageparameter:).md)
- [durationTime(_:ofImageParameter:)](professional_video_applications/fxtimingapi_v4/durationtime(_:ofimageparameter:).md)
- [inPointTimeOfTimeline(forEffect:)](professional_video_applications/fxtimingapi_v4/inpointtimeoftimeline(foreffect:).md)
- [outPointTimeOfTimeline(forEffect:)](professional_video_applications/fxtimingapi_v4/outpointtimeoftimeline(foreffect:).md)
- [timelineTime(_:fromInputTime:)](professional_video_applications/fxtimingapi_v4/timelinetime(_:frominputtime:).md)
- [timelineTime(_:fromImageTime:forParameterID:)](professional_video_applications/fxtimingapi_v4/timelinetime(_:fromimagetime:forparameterid:).md)
- [inputTime(_:fromTimelineTime:)](professional_video_applications/fxtimingapi_v4/inputtime(_:fromtimelinetime:).md)
- [imageTime(_:forParameterID:fromTimelineTime:)](professional_video_applications/fxtimingapi_v4/imagetime(_:forparameterid:fromtimelinetime:).md)
- [fieldOrderForInput(toFilter:)](professional_video_applications/fxtimingapi_v4/fieldorderforinput(tofilter:).md)
- [timelineFpsNumerator(for:)](professional_video_applications/fxtimingapi_v4/timelinefpsnumerator(for:).md)
