Struct std::time::Duration
[−]
[src]
pub struct Duration { pub secs: i64, pub nanos: i32, }
Fields
secs | |
nanos |
Methods
impl Duration
fn new(secs: i64, nanos: i32) -> Self
Create a new duration
fn monotonic() -> Self
Get the monotonic time
fn realtime() -> Self
Get the realtime