Possible Duplicate:
How to sync a javascript countdown with server time
I'm using C# .Net MVC 4 for an application
I have a server side function that calculates the amount of "Time Left" in seconds. This amount gets passed to the View for two purposes. 1. to display it and 2. To start a javascript setInterval routine that will count down the time left client side.
I've noticed there is a time delay between the calculation and the actual start of the setInterval countdown.
What is the best way to capture the amount of time between the calculation and the start of the setInterval so that the time left can be offset by that delay?