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.
duration_from_micros
1 parent 78a8c25 commit 335195dCopy full SHA for 335195d
src/libcore/time.rs
@@ -137,15 +137,14 @@ impl Duration {
137
/// # Examples
138
///
139
/// ```
140
- /// #![feature(duration_from_micros)]
141
/// use std::time::Duration;
142
143
/// let duration = Duration::from_micros(1_000_002);
144
145
/// assert_eq!(1, duration.as_secs());
146
/// assert_eq!(2000, duration.subsec_nanos());
147
148
- #[unstable(feature = "duration_from_micros", issue = "44400")]
+ #[stable(feature = "duration_from_micros", since = "1.27.0")]
149
#[inline]
150
pub const fn from_micros(micros: u64) -> Duration {
151
Duration {
0 commit comments