Skip to content

Document additional differences in SystemTime across platforms #88822

Closed
@rylev

Description

@rylev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsO-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions