pub mod arrival;
pub mod demand;
pub mod edf;
pub mod fifo;
pub mod fixed_point;
pub mod fixed_priority;
pub mod ros2;
pub mod supply;
pub mod time;
pub mod wcet;
#[cfg(test)]
mod tests {
use crate::time::{Duration, Offset, Service};
pub fn d(val: u64) -> Duration {
Duration::from(val)
}
pub fn o(val: u64) -> Offset {
Offset::from(val)
}
pub fn dv(vals: &[u64]) -> Vec<Duration> {
vals.iter().map(|t| d(*t)).collect()
}
pub fn s(val: u64) -> Service {
Service::from(val)
}
pub fn sv(vals: &[u64]) -> Vec<Service> {
vals.iter().map(|t| s(*t)).collect()
}
}