Skip to content

)} ,System.Reactive.Concurrency.IScheduler)}

Qbservable.TimeInterval(IQbservable) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IQbservable<TimeInterval<TSource>> TimeInterval<TSource>(this IQbservable<TSource> source)
  • 2. public static IQbservable<TimeInterval<TSource>> TimeInterval<TSource>(this IQbservable<TSource> source, IScheduler scheduler)

1. Overload

public static IQbservable<TimeInterval<TSource>> TimeInterval<TSource>(this IQbservable<TSource> source)

Summary: Records the time interval between consecutive elements in an observable sequence.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence to record time intervals for.

Returns: IQbservable> -- An observable sequence with time interval information on elements.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

2. Overload

public static IQbservable<TimeInterval<TSource>> TimeInterval<TSource>(this IQbservable<TSource> source, IScheduler scheduler)

Summary: Records the time interval between consecutive elements in an observable sequence, using the specified scheduler to compute time intervals.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence to record time intervals for.
scheduler[IScheduler](#Scheduler used to compute time intervals.

Returns: IQbservable> -- An observable sequence with time interval information on elements.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or scheduler is null.