Skip to content

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

Qbservable.Timestamp(IQbservable) method

Defined in

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

Applies to

netstandard2.0

Overloads

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

1. Overload

public static IQbservable<Timestamped<TSource>> Timestamp<TSource>(this IQbservable<TSource> source)

Summary: Timestamps each element in an observable sequence using the local system clock.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence to timestamp elements for.

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

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

2. Overload

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

Summary: Timestamp each element in an observable sequence using the clock of the specified scheduler.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence to timestamp elements for.
scheduler[IScheduler](#Scheduler used to compute timestamps.

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

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or scheduler is null.