feat(countdown): rocket countdown (#45)

This commit is contained in:
Jens Krause
2025-01-08 18:52:18 +01:00
committed by GitHub
parent 468b4a5abf
commit c8af76c9e5
7 changed files with 111 additions and 11 deletions

View File

@@ -86,6 +86,10 @@ impl DurationEx {
let inner = self.inner.saturating_sub(ex.inner);
Self { inner }
}
pub fn to_string_with_decis(self) -> String {
format!("{}.{}", self, self.decis())
}
}
impl fmt::Display for DurationEx {