from_micros: Added unstable annotation
This commit is contained in:
parent
376837b999
commit
2e6aed8f47
1 changed files with 1 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ impl Duration {
|
|||
/// assert_eq!(1, duration.as_secs());
|
||||
/// assert_eq!(2000, duration.subsec_nanos());
|
||||
/// ```
|
||||
#[unstable(feature = "", issue = "")]
|
||||
#[inline]
|
||||
pub fn from_micros(micros: u64) -> Duration {
|
||||
let secs = micros / MICROS_PER_SEC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue