MCPcopy Index your code
hub / github.com/RustPython/RustPython / monotonic_ns

Function monotonic_ns

crates/vm/src/stdlib/time.rs:204–206  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

202
203 #[pyfunction]
204 fn monotonic_ns(vm: &VirtualMachine) -> PyResult<u128> {
205 Ok(get_monotonic_time(vm)?.as_nanos())
206 }
207
208 #[pyfunction]
209 fn perf_counter(vm: &VirtualMachine) -> PyResult<f64> {

Callers

nothing calls this directly

Calls 1

get_monotonic_timeFunction · 0.85

Tested by

no test coverage detected