Timer

Timer

Produces time stamps. The timer can work either with or without a trigger signal. If the trigger is connected, a time stamp will be sent out after a user-specified delay (interval) whenever an object is received. If the trigger is not connected, the timer will launch repeatedly after each interval milliseconds.

Inputs

trigger
An optional trigger input. Trigger signals are not queued: a new time stamp will not be sent until the timer has fired after the previous trigger. If this input is connected, the user is responsible for setting interval to a value that is shorter than the time between successive trigger signals.
interval
The time-out interval in milliseconds. If the trigger input is connected, this value specifies the delay after which the time stamp will be generated and sent. If not, the timer will fire repeatedly every interval milliseconds. If interval is zero and the trigger input is not connected, the timer will fire as fast as it can.

Outputs

time
A time object that stores the time the timer fired. The accuracy of the time depends on various factors including (but not limited to) the underlying operating system and system load.