<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/HitchTimeMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit09HitchTimeA0V"
  },
  "title" : "HitchTimeMetric"
}
-->

# HitchTimeMetric

A metric that measures animation hitch time.

```
struct HitchTimeMetric
```

## Discussion

This metric corresponds to the [`MetricResult.hitchTime(_:)`](/documentation/MetricKit/MetricResult/hitchTime(_:)) case. It appears in both [`intervalEntries`](/documentation/MetricKit/MetricReport/intervalEntries) and [`stateEntries`](/documentation/MetricKit/MetricReport/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.

## Topics

### Measurements

[`let ratio: Measurement<HitchTimeRatio>`](/documentation/MetricKit/HitchTimeMetric/ratio)

Ratio of time the application spent hitching during tracked animations.

[`let totalHitchTime: Measurement<UnitDuration>`](/documentation/MetricKit/HitchTimeMetric/totalHitchTime)

Total time the application spent hitching during tracked animations.

[`let totalAnimationTime: Measurement<UnitDuration>`](/documentation/MetricKit/HitchTimeMetric/totalAnimationTime)

Total time the application spent animating.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Encodable`](/documentation/Swift/Encodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Decodable`](/documentation/Swift/Decodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)