FixedIntervalClock
class NatML.Recorders.Clocks.FixedIntervalClock : IClock
This clock provides timestamps that advance in fixed intervals. This is useful for controlling the output frame rate for some recorders, and in offline recording.
Creating the Clock
The frameRate
parameter determines the frame rate which the generated timestamps should generate. The autoTick
parameter determines whether the clock should automatically advance its timestamp when the timestamp
property is accessed. In most use cases, this is best left as true
.
The Time Interval
The interval
is the amount of time between consecutive timestamps in seconds. For some recorders, this property determines the true frame rate of the video.
Generating Timestamps
Refer to the Generating Timestamps section of the IClock
interface for more information.
Advancing the Timestamp
When the clock is not set to autoTick
, you must call Tick
to advance its timestamp.
Last updated