Rx.Observable.prototype.timeInterval([scheduler])

Records the time interval between consecutive values in an observable sequence.

Arguments

  1. [scheduler=Rx.Observable.timeout] (Scheduler): Scheduler used to compute time intervals. If not specified, the timeout scheduler is used.

Returns

(Observable): An observable sequence with time interval information on values.

Example