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).

[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.

public IObservable<TimeInterval<TSource>> Process<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The source sequence to record time intervals for.

Returns

IObservable<TimeInterval<TSource>>

An observable sequence with time interval information for each element.

Type Parameters

TSource

The type of the elements in the source sequence.