MCPcopy Create free account
hub / github.com/AI45Lab/Code / update_activity

Method update_activity

core/src/ahp/executor.rs:701–707  ·  view source on GitHub ↗

Update last activity timestamp

(&self)

Source from the content-addressed store, hash-verified

699
700 /// Update last activity timestamp
701 fn update_activity(&self) {
702 let now = std::time::SystemTime::now()
703 .duration_since(std::time::UNIX_EPOCH)
704 .unwrap()
705 .as_millis() as u64;
706 self.last_activity.store(now, Ordering::Relaxed);
707 }
708
709 /// Increment event counter and update activity
710 fn record_event(&self) {

Callers 1

record_eventMethod · 0.80

Calls 2

nowFunction · 0.85
storeMethod · 0.80

Tested by

no test coverage detected