Files
rust/library/std/tests
Clara Engler 1b9b4f4dc6 time: Test and document time precision edge-case
There is a slight edge case when adding and subtracting a `Duration`
from a `SystemTime`, namely when the duration itself is finer/smaller
than the time precision on the operating systems.

On most (if not all non-Windows) operating systems, the precision of
`Duration` aligns with the `SystemTime`, both being one nanosecond.

However, on Windows, this time precision is 100ns, meaning that adding
or subtracting a `Duration` whose value is `< Duration::new(0, 100)`
will result in that method behaving like an addition/subtracting of
`Duration::ZERO`, due to the `Duration` getting rounded-down to the zero
value.
2025-12-13 10:44:48 +01:00
..
2025-02-07 16:54:07 +01:00
2024-04-28 18:04:25 -04:00
2024-04-28 18:04:25 -04:00
fix
2025-11-27 17:55:34 +07:00
2025-02-09 17:11:13 +00:00
2024-07-29 08:26:52 +10:00