![]() # Objective - Add an easy way to finish a Timer ## Solution - Tick the timer by the remaining time ## Testing I have not tested, but it should work --- ## Showcase ```rust let mut timer = Timer::from_seconds(1.5, TimerMode::Once); timer.finish(); assert_eq!(timer.remaining(), Duration::from_secs(0)) ``` --------- Co-authored-by: Jan Hohenheim <jan@hohenheim.ch> Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |