1
0
Fork 0
zynq-rs/libboard_zynq/src/time.rs

11 lines
243 B
Rust
Raw Normal View History

#[derive(Debug, Clone, Copy, PartialEq, PartialOrd)]
pub struct Milliseconds(pub u64);
impl core::ops::Add for Milliseconds {
type Output = Self;
fn add(self, rhs: Self) -> Self::Output {
Milliseconds(self.0 + rhs.0)
}
}