We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a15c541 commit b40a9f4Copy full SHA for b40a9f4
src/libstd/time/duration.rs
@@ -123,14 +123,15 @@ impl Duration {
123
/// # Examples
124
///
125
/// ```
126
+ /// #![feature(duration_from_micros)]
127
/// use std::time::Duration;
128
129
/// let duration = Duration::from_micros(1_000_002);
130
131
/// assert_eq!(1, duration.as_secs());
132
/// assert_eq!(2000, duration.subsec_nanos());
133
- #[unstable(feature = "", issue = "44400")]
134
+ #[unstable(feature = "duration_from_micros", issue = "44400")]
135
#[inline]
136
pub fn from_micros(micros: u64) -> Duration {
137
let secs = micros / MICROS_PER_SEC;
0 commit comments