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

Expand description

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));

Structs

Experimental

An error which can be returned when converting a floating-point value of seconds into a Duration.

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