I’m trying to create a timer that records elapsed time as opposed to counting down (similar to the game clock in soccer). I initialize the start time upon app launch, and then would ideally trigger a function call every second that updates the text-component that displays the timer.
but I see that the threading module isn’t available on the client side. I can use it on the server side, but I’m worried about speed since server calls take a certain amount of time, and the function itself takes a small amount. I know that it’s pretty much unnoticable but I would like my timer to be as accurate as it can be, so I was wondering what implementation would work best?
Is calling a server function that then executes threading.Timer() fast enough?
Thank you for the response! I have my time-obtaining functions tested and they’re pretty much like yours and it works, but I’m still stuck on what the best way to trigger the functions every 1-second, and have the automatic calls be as accurate as possible. Is there another way to automatically trigger a function every n-seconds other than threading.Timer()?