1 2 3 4 5 6 7 8 9 10 11
use crate::prelude::{AbsoluteTime, Epoch, TimeScale}; pub struct NullTime {} impl AbsoluteTime for NullTime { fn new_epoch(&mut self, _: Epoch) {} fn epoch_correction(&self, t: Epoch, target: TimeScale) -> Epoch { t.to_time_scale(target) } }