Skip to main content

Module time

Module time 

Source
Expand description

Signed integer-tick time and rational frame rates, independent of rendering.

Structs§

FrameRate
A positive rational number of frames per second, stored in reduced form.
Time
A signed time point or duration, stored as integer flicks.

Constants§

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

Traits§

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

Type Aliases§

Duration
A duration uses the same representation and arithmetic as a time point.