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§
Sourcefn as_secs_f64(&self) -> f64
fn as_secs_f64(&self) -> f64
Seconds since an unspecified epoch (lossy convenience).
Implementors§
impl Timestamp for MacosTimestamp
Available on macOS and crate feature
std only.