Skip to main content

Timestamp

Trait Timestamp 

Source
pub trait Timestamp {
    // Required method
    fn as_secs_f64(&self) -> f64;
}
Expand description

A presentation timestamp from the platform’s media clock.

The interpretation of the underlying value depends on the platform. Use as_secs_f64() for a portable approximation, or access the platform-specific timestamp type (via the Frame::Timestamp associated type) for full precision.

Required Methods§

Source

fn as_secs_f64(&self) -> f64

Seconds since an unspecified epoch (lossy convenience).

Implementors§

Source§

impl Timestamp for MacosTimestamp

Available on macOS and crate feature std only.