Skip to content Skip to sidebar Skip to footer

Java, Android, Get Atomic Time From Itnernet Server

i trying to synchronize two apps. How can i get the server time of any server with an accuracy up to 1ms? or maybe just 10ms? i tried this some SNTP Clients, but they give me only

Solution 1:

You need to configure your SNTP client to follow a time server out there. There are 2 ways to sync your time. SLAM, or SLEW.

SLAM, just takes the server time and throws it on the client.

SLEW, takes the server time and corrects your client time, over the next few minutes.

In your case, I suggest that, as your application loads, use SLAM.

In the uxix, netware world, there were utilities like ntpdate for slaming, and ntpd for slewing.

SNTP is the way to go, these clients have been around for like 15 years now, so its very stable. Infact new development stopped like 8 years back. So it ought to be very stable. Just take more time and configure it right.

sntp android

Post a Comment for "Java, Android, Get Atomic Time From Itnernet Server"