Returns a positive `TimeDuration` with the magnitude of `self`.
(self)
| 64 | |
| 65 | /// Returns a positive `TimeDuration` with the magnitude of `self`. |
| 66 | pub fn abs(self) -> Self { |
| 67 | Self::from_micros(self.to_micros().saturating_abs()) |
| 68 | } |
| 69 | |
| 70 | /// Return a [`TimeDuration`] which represents the same span as `duration`. |
| 71 | /// |
no test coverage detected