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

Function clock_settime

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

Source from the content-addressed store, hash-verified

1221 #[cfg(any(not(target_vendor = "apple"), target_os = "macos"))]
1222 #[pyfunction]
1223 fn clock_settime(clk_id: ClockId, time: Duration, vm: &VirtualMachine) -> PyResult<()> {
1224 set_clock_time(clk_id, time.into(), vm)
1225 }
1226
1227 #[cfg(not(target_os = "redox"))]
1228 #[cfg(any(not(target_vendor = "apple"), target_os = "macos"))]

Callers 1

set_clock_timeFunction · 0.85

Calls 1

set_clock_timeFunction · 0.85

Tested by

no test coverage detected