use std::time::Instant;
pub struct System {
start: Instant
}
impl System {
pub fn init() -> Result<System, String> {
let start = Instant::now();
Ok(System{start})
}
/// Time since start in microseconds
pub fn now(&self) -> i128 {
self.start.elapsed().as_micros() as i128
}
pub fn shut(&mut self) -> Result<(), String> {
Ok(())
}
}