---
title: HitchTimeMetric
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/hitchtimemetric
---

# HitchTimeMetric

A metric that measures animation hitch time.

## Declaration

```swift
struct HitchTimeMetric
```

## Discussion

Discussion This metric corresponds to the MetricResult.hitchTime(_:) case. It appears in both intervalEntries and stateEntries when state reporting is enabled. The ratio is normalized against total animation duration and incorporates perceptual adjustments, making it the most accurate representation of the hitches users actually experience. This type replaces the hitchTimeRatio property of MXAnimationMetric.

## Topics

### Measurements

- [ratio](metrickit/hitchtimemetric/ratio.md)
- [totalHitchTime](metrickit/hitchtimemetric/totalhitchtime.md)
- [totalAnimationTime](metrickit/hitchtimemetric/totalanimationtime.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Launch and responsiveness metrics

- [TimeToFirstDrawMetric](metrickit/timetofirstdrawmetric.md)
- [OptimizedTimeToFirstDrawMetric](metrickit/optimizedtimetofirstdrawmetric.md)
- [ApplicationResumeTimeMetric](metrickit/applicationresumetimemetric.md)
- [ExtendedLaunchMetric](metrickit/extendedlaunchmetric.md)
- [HangTimeMetric](metrickit/hangtimemetric.md)
- [ScrollHitchTimeMetric](metrickit/scrollhitchtimemetric.md)
