2020-04-25 06:18:45 +08:00
|
|
|
#[derive(Debug, Clone, PartialEq, PartialOrd)]
|
|
|
|
pub struct Milliseconds(pub u64);
|
2020-04-25 07:18:49 +08:00
|
|
|
|
|
|
|
impl core::ops::Add for Milliseconds {
|
|
|
|
type Output = Self;
|
|
|
|
|
|
|
|
fn add(self, rhs: Self) -> Self::Output {
|
|
|
|
Milliseconds(self.0 + rhs.0)
|
|
|
|
}
|
|
|
|
}
|