use std::time::Instant;
#[derive(Copy, Clone)]
pub(crate) struct ScheduleLatencyInstant();
impl ScheduleLatencyInstant {
pub(crate) fn new(_runtime_start: Option<Instant>) -> Self {
Self()
}
pub(crate) fn prepare(self, _runtime_start: Option<Instant>) -> Option<ScheduleLatencyContext> {
None
}
}
pub(crate) struct ScheduleLatencyContext {
_private: (),
}
impl ScheduleLatencyContext {
#[allow(dead_code)]
pub(crate) fn elapsed_nanos(&self, _now: Instant) -> u64 {
unimplemented!("This should never be called because prepare() always returns None")
}
}