1
Fork 0

Improve Duration::try_from_secs_f32/64 accuracy by directly processing exponent and mantissa

This commit is contained in:
Артём Павлов [Artyom Pavlov] 2022-01-26 18:14:25 +03:00
parent 788b1fe5b7
commit e0bcf771d6
3 changed files with 202 additions and 103 deletions

View file

@ -45,7 +45,7 @@ use crate::sys_common::FromInner;
pub use core::time::Duration;
#[unstable(feature = "duration_checked_float", issue = "83400")]
pub use core::time::FromSecsError;
pub use core::time::FromFloatSecsError;
/// A measurement of a monotonically nondecreasing clock.
/// Opaque and useful only with [`Duration`].