Table of Contents

Class TimestampOperator

Namespace
RxSharp.Operators
Assembly
RxSharp.dll

Extension methods implementing the timestamp operator.

public static class TimestampOperator
Inheritance
System.Object
TimestampOperator

Methods

Timestamp<T>(Observable<T>, IScheduler?)

Tags each value emitted by source with the time it was received, using scheduler's notion of "now". Errors and completion are passed through unchanged.

public static Observable<Timestamp<T>> Timestamp<T>(this Observable<T> source, IScheduler? scheduler = null)

Parameters

source Observable<T>

The source sequence.

scheduler IScheduler

The scheduler whose Now is used to time each emission; defaults to Instance when null.

Returns

Observable<Timestamp<T>>

An observable of Timestamp<T> values pairing each source value with the time it was received.

Type Parameters

T

The type of values emitted by source.