I have a variable and a clock. Every time the clock times I increase the variable value and save it in tinyDB. But now I want to add more screens and keep the same counter. I could do the same code in every screen but I would like to ask if it is possible to keep the same clock updating and not having to add a clock and tinyDB in each screen
1 Like
I don't think that it's necessary
Why not use virtual screens?
See number 1.
Instead of keeping clock ticks and trying to keep incrementing them, just keep the SystemTime when you started whatever time count once at start time, and if you need to check the elapsed time, take the Duration between Clock1.Now() and your starting Instant.
(You will need to convert SystemTime (ms) to Instant.)