Timer is slower than an actual timer

See original GitHub issue

The timer is slower(noticeable within 1 minute) than an actual timer or Javascript’s default setInterval, I tried using runBackgroundTimer and setInterval(for Android), the latter being a bit faster however it would still lag behind an actual timer or Javascript’s setInterval. Used on an actual device outside dev.

Code(using with Redux):

BackgroundTimer.runBackgroundTimer(() => {
    // code that will be called every 1 second
    tickTock(dispatch);
}, 1000);

“react-native-background-timer”: “2.4.1” “react-native”: “0.61.5”

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:12

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Stopwatch Timer is slower than normal time - Stack Overflow
The problem is that it seems to not go at the proper speed, meaning that when I compare it to other timers, it...
Read more >
Why is the in game timer faster than real time? : r/starcraft
Technically, normal is real-time speed but most games are played on "faster" speed, so the timer moves faster than real time. I don't...
Read more >
TimeSimmer : An adjustable timer for apps that need to speed ...
TimeSimmer : An adjustable timer for apps that need to speed up or slow down time ... your app runs a simulation at...
Read more >
Slow timer . - CodeProject
I build a timer application to count down and count up the time. But when I compare it with other timer software I...
Read more >
Time.deltaTime timer counting slowly - Unity Answers
Apart from all that there's no reason why the timer in your code should run slower than normal. If anything it would be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found