Exact time on different devices

188 Views Asked by At

I need two devices to have exact same time. I want to use GPS to get time. It can be done on iOS and Android devices. Can i be sure that they have exact same time in milliseconds?

1

There are 1 best solutions below

0
On

No you cannot do that easily. ios overrides the gps time. If a user adds one hour, and disables auto time sync, the time is then offset. It will not work that way. If auto time sync is enabled it should work.

However you could query via internet the correct time using a time service, and do the same that NTP do. (network time protocoll). However that looks not to easy.

As an intermediate approach, I would check whether the system time relates to the network time. If yes, one can asume that auto time sync is enabled.