This commit is contained in:
2025-08-10 17:27:47 +08:00
parent cfc1dbf507
commit 964045b07f
12 changed files with 104 additions and 0 deletions

View File

@@ -11,3 +11,8 @@ pub mod utils;
lazy_static::lazy_static! {
static ref COUNTER: utils::counter::Counter = utils::counter::Counter::new();
}
/// Returns a reference to the global counter instance.
pub fn get_counter() -> &'static utils::counter::Counter {
&COUNTER
}