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

Function perf_counter

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

Source from the content-addressed store, hash-verified

207
208 #[pyfunction]
209 fn perf_counter(vm: &VirtualMachine) -> PyResult<f64> {
210 Ok(get_perf_time(vm)?.as_secs_f64())
211 }
212
213 #[pyfunction]
214 fn perf_counter_ns(vm: &VirtualMachine) -> PyResult<u128> {

Callers 1

_test_generatorFunction · 0.90

Calls 1

get_perf_timeFunction · 0.85

Tested by

no test coverage detected