This is really a well-known (very old) problem that has been discussed extensively in all App Inventor forums since 2014.
So search the forums … there are a number of solutions …
Here is one of the first approaches (early 2014):
Also see here (to compare the accuracy of the clock component with a real-time timer extension):
2 Likes