Table of Contents

Class Timestamp

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that records the timestamp for each element produced by an observable sequence.

Marble diagram

Timestamps are specified relative to Coordinated Universal Time (UTC) using DateTimeOffset values, and are recorded as soon as element notifications are received from the source sequence.

Warning

By default, timestamps are logged using the highest-resolution performance counter available in the system. The clock is synchronized with system time for events ocurring within the same process, including across different threads. However, timestamps are not guaranteed to be synchronized across different processes.

Caution

Time recorded using the Timestamp operator does not take into account any hardware or communication latency associated with data acquisition processes. If your application requires high-precision timing of data acquisition events, consider logging any available hardware timestamps included in the data, if available.

[Combinator]
public class Timestamp
Inheritance
Timestamp
Inherited Members

Methods

Process<TSource>(IObservable<TSource>)

Records the timestamp for each element produced by an observable sequence.

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

Parameters

source IObservable<TSource>

The source sequence to timestamp elements for.

Returns

IObservable<Timestamped<TSource>>

An observable sequence with timestamp information on elements.

Type Parameters

TSource

The type of the elements in the source sequence.