MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / init_gtl

Function init_gtl

src/execution/logger.rs:399–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397pub static GTL: OnceCell<RwLock<GlobalTimeLogger>> = OnceCell::new();
398
399pub fn init_gtl() {
400 GTL.set(RwLock::new(GlobalTimeLogger::new())).unwrap();
401}
402
403pub fn get_gtl() -> RwLockReadGuard<'static, GlobalTimeLogger> {
404 GTL.get().expect("GTL should not be None").read().unwrap()

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected