ios - Getting updated server time every second -


i have requirement need know server time @ given point of time in app. app connects server, server sends time , not sure how update time.

i thought of using timers method called every second , and second added server time, whenever ask server time updated one. problem if schedule on main runloop, run loop may or may not process timer request if there busy.

so how track server time?

thanks

your server in specific time zone correct? time zone of server using request , show time in time zone in app. can use timer continue updating time every second.

i suggest getting time zone because if server's time, there lag between when server sends response , when - defeats whole purpose of getting time on server.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -