---
title: "decision(at:tolerance:)"
framework: cinematic
role: symbol
role_heading: Instance Method
path: "cinematic/cnscript-1ispe/decision(at:tolerance:)"
---

# decision(at:tolerance:)

The closest decision to the given time within the given tolerance.

## Declaration

```swift
final func decision(at time: CMTime, tolerance: CMTime) -> CNDecision?
```

## Parameters

- `time`: The time of the decision.
- `tolerance`: The tolerance time.

## Return Value

Return Value A decision representing the closest decision to the given time within the given tolerance. Returns nil if there are none.
