Skip to main content

Module time

Module time 

Source
Expand description

Integer-tick time points, nonnegative durations, signed offsets and rational frame rates.

Structs§

Duration
A nonnegative span of time, stored as integer flicks.
FrameRate
A positive rational number of frames per second, stored in reduced form.
Time
A signed point on the timeline, stored as integer flicks since the origin.
TimeOffset
A signed span of time, stored as integer flicks.

Constants§

TICKS_PER_SECOND
Flicks per second, exactly covering common video and audio sample rates.

Traits§

TimeLiteral
Readable nonnegative time literals, such as 2.seconds() and 1.5.seconds().