(clk_id: ClockId, vm: &VirtualMachine)
| 1180 | } |
| 1181 | |
| 1182 | fn get_clock_time(clk_id: ClockId, vm: &VirtualMachine) -> PyResult<Duration> { |
| 1183 | let ts = nix::time::clock_gettime(clk_id).map_err(|e| e.into_pyexception(vm))?; |
| 1184 | Ok(ts.into()) |
| 1185 | } |
| 1186 | |
| 1187 | #[pyfunction] |
| 1188 | fn clock_gettime(clk_id: ClockId, vm: &VirtualMachine) -> PyResult<f64> { |
no test coverage detected