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

Function get_monotonic_time

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

Source from the content-addressed store, hash-verified

86 // TODO: implement proper monotonic time for wasm/wasi.
87 #[cfg(not(any(unix, windows)))]
88 fn get_monotonic_time(vm: &VirtualMachine) -> PyResult<Duration> {
89 duration_since_system_now(vm)
90 }
91
92 // TODO: implement proper perf time for wasm/wasi.
93 #[cfg(not(any(unix, windows)))]

Callers 2

monotonicFunction · 0.85
monotonic_nsFunction · 0.85

Calls 3

get_clock_timeFunction · 0.85
ok_or_elseMethod · 0.80

Tested by

no test coverage detected