Skip to content

The setInterval function can only be called 66 times per second under Windows. #57191

Open
@FishOrBear

Description

@FishOrBear

Version

22.9

Platform

win10 22H2

code:

let i = 0;
setInterval(() =>
{
    i++;
}, 10);

setInterval(() =>
{
    console.log(i);
    i = 0;
}, 1000);

Subsystem

No response

What steps will reproduce the bug?

node

How often does it reproduce? Is there a required condition?

.

What is the expected behavior? Why is that the expected behavior?

100/s

What do you see instead?

66/s

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions