MCPcopy Index your code
hub / github.com/AI45Lab/Code / set

Method set

core/src/host_env.rs:170–173  ·  view source on GitHub ↗

Atomically set the clock to a new value. Returns the previous value.

(&self, now_ms: u64)

Source from the content-addressed store, hash-verified

168
169 /// Atomically set the clock to a new value. Returns the previous value.
170 pub fn set(&self, now_ms: u64) -> u64 {
171 self.now_ms
172 .swap(now_ms, std::sync::atomic::Ordering::SeqCst)
173 }
174
175 /// Advance the clock by `delta_ms`.
176 pub fn advance(&self, delta_ms: u64) {

Callers 8

ensure_git_installedFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected