(&self)
| 37 | /// Host-provided wall clock (ns); without one, `sleep` advances a deterministic virtual clock. |
| 38 | pub fn set_time_hook(&mut self, hook: fn() -> u64) { self.time_hook = Some(hook); } |
| 39 | pub(crate) fn now_ns(&self) -> u64 { |
| 40 | match self.time_hook { Some(h) => h(), None => self.virtual_clock_ns } |
| 41 | } |
| 42 | |
| 43 | pub fn heap_usage(&self) -> usize { self.heap.usage() } |
| 44 | pub fn cache_stats(&self) -> (usize, usize) { (self.templates.count(), self.chunk.instructions.len()) } |
no outgoing calls
no test coverage detected