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

Function clock_gettime_ns

crates/vm/src/stdlib/time.rs:1193–1195  ·  view source on GitHub ↗
(clk_id: ClockId, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1191
1192 #[pyfunction]
1193 fn clock_gettime_ns(clk_id: ClockId, vm: &VirtualMachine) -> PyResult<u128> {
1194 get_clock_time(clk_id, vm).map(|d| d.as_nanos())
1195 }
1196
1197 #[cfg(not(target_os = "redox"))]
1198 #[pyfunction]

Callers

nothing calls this directly

Calls 2

get_clock_timeFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected