Skip to content

Improve timer accuracy #3

@johnholbrook

Description

@johnholbrook

Currently the timer code just calls a function to decrement the timer every 1000ms using setTimeout(), which only guarantees that the function will be called every 1000ms or more. Thus the total time could be a bit more than 2:30, if the device is doing. Would be nice to time the actual gap between executions of the timer function and adjust accordingly to get more accurate timing.

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