1.25.0[−][src]Module alloc::time
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
Duration | A |
Constants
MICROSECOND | [ Experimental ] The duration of one microsecond. |
MILLISECOND | [ Experimental ] The duration of one millisecond. |
NANOSECOND | [ Experimental ] The duration of one nanosecond. |
SECOND | [ Experimental ] The duration of one second. |