Skip to content

Improve timer accuracy #3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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