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

Function set_clock_time

crates/vm/src/stdlib/time.rs:1206–1208  ·  view source on GitHub ↗
(clk_id: ClockId, timespec: TimeSpec, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1204 #[cfg(not(target_os = "redox"))]
1205 #[cfg(not(target_vendor = "apple"))]
1206 fn set_clock_time(clk_id: ClockId, timespec: TimeSpec, vm: &VirtualMachine) -> PyResult<()> {
1207 nix::time::clock_settime(clk_id, timespec).map_err(|e| e.into_pyexception(vm))
1208 }
1209
1210 #[cfg(not(target_os = "redox"))]
1211 #[cfg(target_os = "macos")]

Callers 2

clock_settimeFunction · 0.85
clock_settime_nsFunction · 0.85

Calls 5

clock_settimeFunction · 0.85
into_pyexceptionMethod · 0.45
as_rawMethod · 0.45
as_refMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected