I want to display a stopwatch(timer) for my capsule.
So, is there any way from which I can show timer in my view page which will get refreshed every second. I am not understanding where to start. How will time get refreshed?
Any help on this.
I want to display a stopwatch(timer) for my capsule.
So, is there any way from which I can show timer in my view page which will get refreshed every second. I am not understanding where to start. How will time get refreshed?
Any help on this.
Although it's possible to do a 1 second refresh this is definitely going to suffer from inaccuracy due to latency.
Depending upon your use case, simply creating an animated gif and displaying it may be simpler and definitely more accurate. Perhaps this combined with a refresh may be a better solution.
An example (from https://timertopia.files.wordpress.com/2018/06/30seccut.gif) would be something like this
You can use the built-in refresh command to repaint the screen. For example,
The Bixby team has provided a working example on Github
Detail on refresh here