i6_timer/stop.rs
1pub fn stop_timer(name: &str) {
2 // Implement the stop timer functionality here
3 println!("Stopping the timer named '{}'...", name);
4}
5#[test]
6fn test_stop_timer() {
7 let name = "test";
8 stop_timer(name);
9 // Add assertions here based on your implementation
10}
11
12pub fn stop_all_timers() {
13 // Implement the stop all timers functionality here
14 println!("Stopping all timers...");
15}
16#[test]
17fn test_stop_all_timers() {
18 stop_all_timers();
19 // Add assertions here based on your implementation
20}