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

Function sec_to_timeval

crates/stdlib/src/select.rs:201–206  ·  view source on GitHub ↗
(sec: f64)

Source from the content-addressed store, hash-verified

199}
200
201fn sec_to_timeval(sec: f64) -> timeval {
202 timeval {
203 tv_sec: sec.trunc() as _,
204 tv_usec: (sec.fract() * 1e6) as _,
205 }
206}
207
208#[pymodule(name = "select")]
209mod decl {

Callers

nothing calls this directly

Calls 1

truncMethod · 0.80

Tested by

no test coverage detected