Module core::time1.25.0[][src]

Temporal quantification.

Example:

use std::time::Duration;

let five_seconds = Duration::new(5, 0);
// both declarations are equivalent
assert_eq!(Duration::new(5, 0), Duration::from_secs(5));Run

Structs

Duration

A Duration type to represent a span of time, typically used for system timeouts.