RNBO Objects & Operators timer
Open Help

timer

Report elapsed time between two events

Description

Reports the amount of time in milliseconds between when a bang is received in the left inlet and the right. Can also be used to get the amount of time elapsed since host startup.

Inlets

start [bang]

A bang in the left inlet will reset the timer to zero.

end [bang]

A bang in the right inlet reports the time elapsed since the timer started. If a bang is received before the left inlet receives a bang, it reports the time elapsed since Max (or the host application for exported code) was started.

Outlets

out [number]

The elapsed time in milliseconds.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

end [bang]

A bang in the right inlet reports the time elapsed since the timer started. If a bang is received before the left inlet receives a bang, it reports the time elapsed since Max (or the host application for exported code) was started.

start [bang]

A bang in the left inlet will reset the timer to zero.

See Also

Name Description
timer
currenttime Report current time
currentsampletime Report current time in samples.
delay Delay a bang by a given time (ms)
elapsed~ Elapsed time (samples) since load/reset
mstobeats Convert ms to beats.
mstohz Convert ms to frequency (Hz).
mstosamps convert milliseconds to samples