I have a webservices that collects realtime market data and displays it in a web frontend.
My frontend (jQuery) needs to display a clock, somewhat synchronized with the server clock (+- a few seconds is fine).
I was thinking of delivering a UTC timestamp alongside the rest of the data the server provides when the client loads.
Then, I would start a timer and every 1 seconds increment the displayed clock.
Is this a good approach or is it better to use a time server?
Thanks!