other_crate_kenko 0.2.1

for testing purposes only
Documentation
// for testing purposes
// with serde_json
#[derive(Debug)]
pub struct Duration {
    pub secs: i64,
    pub nanos: i32,
}

impl Duration {
    pub fn new(secs: i64, nanos: i32) -> Self {
        Duration { secs, nanos }
    }

    pub fn seconds(&self) -> i64 {
        self.secs
    }

    pub fn subsec_nanos(&self) -> i32 {
        self.nanos
    }
}