blob: 814b3d45b7b690d76e79219b44dc118177f4e841 [file] [log] [blame]
impl ::core::convert::From<::core::time::Duration> for TimeSpan {
fn from(value: ::core::time::Duration) -> Self {
Self { Duration: (value.as_nanos() / 100) as i64 }
}
}
impl ::core::convert::From<TimeSpan> for ::core::time::Duration {
fn from(value: TimeSpan) -> Self {
::core::time::Duration::from_nanos((value.Duration * 100) as u64)
}
}