use core::time::Duration;
#[derive(Debug)]
pub enum ErrorKind {
NotRoot,
NotStart,
Unknown(isize),
}
pub type Result<T> = core::result::Result<T, ErrorKind>;
pub trait RealTime {
fn start(&mut self, period: Duration) -> Result<()>;
fn stop(&mut self) -> Result<()>;
fn wait_period(&mut self) -> Result<()>;
}