Timer is slower than an actual timer
See original GitHub issueThe 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:
- Created 3 years ago
- Reactions:4
- Comments:12
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mgeorgievsky thanks for your answer! As a result i just did like that: https://github.com/ocetnik/react-native-background-timer/issues/258#issuecomment-749721388
Maybe this can help: https://github.com/ocetnik/react-native-background-timer/issues/258#issuecomment-749721388