Skip to content

x/sys/windows: Expose timeBeginPeriod and timeEndPeriod #61723

@johnrs

Description

@johnrs

Problem: A breaking change made in Go 1.16, 2.5 years ago, and is ongoing. It affects Windows users. See Issue #44343 for details and links to other issues for the same problem.

Discussion: This proposal would help to mitigate the problem. It would make it much easier for a user, unfamiliar with Windows system calls, to use timeBeginPeriod and timeEndPeriod, which have been identified as a workaround. Using these, a user could manually set the system clock to the desired resolution, typically 1ms or 15.6ms. This workaround has been determined to not interfere with the current Go runtime. It has been tested by multiple people and found to work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions