Table of Contents

Class TimeInterval

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that records the time interval between consecutive values produced by an observable sequence.

Marble diagram

For each element in the source sequence, TimeInterval measures the time elapsed between the arrival of that element and the previous element. Time zero is the start of the sequence (i.e. the moment of subscription).

Example

Use TimeInterval to measure the time elapsed between consecutive elements.

TimeInterval Example

Measure Camera Frame Rate

Use TimeInterval to calculate the rate of camera frame acquisition.

TimeInterval Application MeasureFrameRate

Note

This example requires the Bonsai.Vision package to be installed.

[Combinator]
public class TimeInterval
Inheritance
TimeInterval
Inherited Members

Methods

Process<TSource>(IObservable<TSource>)

Records the time interval between consecutive values produced by an observable sequence.