<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Publishers/MeasureInterval",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO15MeasureIntervalV"
  },
  "title" : "Publishers.MeasureInterval"
}
-->

# Publishers.MeasureInterval

A publisher that measures and emits the time interval between events received from an upstream publisher.

```
struct MeasureInterval<Upstream, Context> where Upstream : Publisher, Context : Scheduler
```

## Topics

### Creating a measure interval publisher

[`init(upstream:scheduler:)`](/documentation/Combine/Publishers/MeasureInterval/init(upstream:scheduler:))

Creates a publisher that measures and emits the time interval between events received from an upstream publisher.

### Declaring supporting types

[`Publishers.MeasureInterval.Output`](/documentation/Combine/Publishers/MeasureInterval/Output)

The kind of values published by this publisher.

[`Publishers.MeasureInterval.Failure`](/documentation/Combine/Publishers/MeasureInterval/Failure)

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`upstream`](/documentation/Combine/Publishers/MeasureInterval/upstream)

The publisher from which this publisher receives elements.

[`scheduler`](/documentation/Combine/Publishers/MeasureInterval/scheduler)

The scheduler used for tracking the timing of events.



---

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)