add clear method

This commit is contained in:
Robin Mueller
2025-11-20 15:17:01 +01:00
parent c5efea008f
commit ee6dc1a39e

View File

@@ -282,6 +282,11 @@ pub mod alloc_mod {
> {
self.tc_map.range(..=self.current_time)
}
/// Completely clear the scheduler.
pub fn clear(&mut self) {
self.tc_map.clear();
}
}
}