Timestamp

See also

  • Official ReactiveX documentation: Timestamp
Observable.timestamp(scheduler=None)

Records the timestamp for each value in an observable sequence.

1 - res = source.timestamp() # produces { “value”: x, “timestamp”: ts } 2 - res = source.timestamp(Scheduler.timeout)

Parameters:scheduler (Scheduler) – [Optional] Scheduler used to compute timestamps. If not specified, the timeout scheduler is used.

Returns an observable sequence with timestamp information on values.

../../_images/timestamp.png