Simple time handling in Rust