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

Function _time

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

Source from the content-addressed store, hash-verified

166 not(any(target_os = "emscripten", target_os = "wasi")),
167 )))]
168 fn _time(vm: &VirtualMachine) -> PyResult<f64> {
169 Ok(duration_since_system_now(vm)?.as_secs_f64())
170 }
171
172 #[cfg(all(
173 target_arch = "wasm32",

Callers 11

wait_forMethod · 0.90
acquireMethod · 0.90
communicateMethod · 0.90
_remaining_timeMethod · 0.90
_check_timeoutMethod · 0.90
waitMethod · 0.90
_waitMethod · 0.90
__init__Method · 0.90
localtrace_traceMethod · 0.90
timeFunction · 0.85

Calls 2

ErrClass · 0.50

Tested by

no test coverage detected