Yes, the title is a bit weird, but read on, I have an interesting story to tell.
Recently at work I was tasked with implementing a timer. It wa...
For further actions, you may consider blocking this person and/or reporting abuse
Unfortunately, there's not really a better way to do it.
You can use a time API to get the global time. Essentially that pulls the time from a server that it synced with a global/atomic clock.
However, the time that returns may still have some delay depending on the network connection.
One way would be to let the timer to be on server side and let it send you a push notification/trigger.
Other way would be to check the time on server and add the request time, from time to time.
When handling the time in a browser keep in mind
en.wikipedia.org/wiki/Network_Time...
developers.google.com/time/
tf.nist.gov/tf-cgi/servers.cgi
ntppool.org/en/