You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resource.rs
    path of file: ./repos/coreutils/coreutils_core/src/os
    
    the code of the file until where you have to start completion: //! Module abstracting interactions with getrusage(2)
//!
//! Also holds utility functions for summarizing the data returned by getrusage(2)
#[cfg(not(target_os = "fuchsia"))]
us
    
fn timeval_to_duration(t: TimeVal) -> Duration {
    // This type cast is realistically safe because the number of
    // microseconds in a second cannot exceed `1e+6`, which at
    // most would be `1e+9` nanoseconds, which fits in i32
    // If this panics something really went wrong in the underlying
    // C-api that returned this timeval
    Duration::new(t.tv_sec as i64, t.tv_usec as i32 * 1_000)
}