You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rust-lang/measureme#173 we discovered that our tests were failing on Windows because SystemTime on Windows (which is backed by FILETIME) only works in 100 nanosecond intervals, and when we were adding a Duration of less than 100 nanoseconds to a SystemTime we were getting back the same SystemTime.
While this isn't a bug as SystemTime makes it clear that it uses platform specific backing implementations, it would be nice if it were documented that some of the operations on SystemTime might perform differently on different platforms.
The text was updated successfully, but these errors were encountered:
rylev
added
O-windows
Operating system: Windows
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
labels
Sep 10, 2021
In rust-lang/measureme#173 we discovered that our tests were failing on Windows because
SystemTime
on Windows (which is backed byFILETIME
) only works in 100 nanosecond intervals, and when we were adding aDuration
of less than 100 nanoseconds to aSystemTime
we were getting back the sameSystemTime
.While this isn't a bug as
SystemTime
makes it clear that it uses platform specific backing implementations, it would be nice if it were documented that some of the operations onSystemTime
might perform differently on different platforms.The text was updated successfully, but these errors were encountered: