Table of Contents

Class Timer

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that generates an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the render loop timing.

public class Timer : Source<long>
Inheritance
Timer
Inherited Members

Properties

DueTime

Gets or sets the relative time at which to produce the first value. If this value is less than or equal to zero, the timer will fire as soon as possible.

Period

Gets or sets the period to produce subsequent values. If this value is undefined or equal to zero the timer will only fire once.

Methods

Generate()

Generates an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the render loop timing.

Generate(IObservable<FrameEvent>)

Generates an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the timing from the specified sequence of frame events.

Generate(IObservable<TimeStep>)

Generates an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the timing from the specified sequence of time steps.

Generate(IObservable<double>)

Generates an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the timing from the specified sequence of time steps in seconds.