#[allow(unused_imports)]
use super::*;
pub struct TimestampedFrame<F> {
pub timestamp_s: f64,
pub frame: F,
}
impl<F> TimestampedFrame<F> {
#[inline]
pub fn new(timestamp_us: u64, frame: F) -> Self {
Self {
timestamp_s: timestamp_to_seconds(timestamp_us),
frame,
}
}
}