Improve Duration::try_from_secs_f32/64 accuracy by directly processing exponent and mantissa
This commit is contained in:
parent
788b1fe5b7
commit
e0bcf771d6
3 changed files with 202 additions and 103 deletions
|
@ -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`].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue