Skip to content

setInterval is not a good way to track time #35

@Equbuxu

Description

@Equbuxu

The setInterval function can "drift" over time. This is especially noticeable if you switch to another tab while the stopwatch is running. In this case chrome increases the interval to save cpu resources which makes the stopwatch tick slower. The difference can get really severe, for me the stopwatch ticks about 3 times slower when kept in background.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions