MuTime
MuTime copied to clipboard
Using full NTP of MuTime always times out but gets results (???)
When I use the call:
Ntp.performNtpAlgorithm(
Ntp.resolveMultipleNtpHosts("pool.ntp.org", "time.google.com", "time.apple.com")
);
This is what I see in logcat:
2020-03-23 13:57:26.652 27347-27383/com.xxxxx I/Ntp: Getting the time from 6 IP addresses: [time.google.com/216.239.35.12, pool.ntp.org/198.255.68.106, time.google.com/216.239.35.8, time.google.com/216.239.35.4, pool.ntp.org/159.203.158.197, time.google.com/216.239.35.0]...
2020-03-23 13:57:56.708 27347-27559/com.xxxxx E/SntpClient: SNTP request failed for 216.239.35.12: java.net.SocketTimeoutException: Poll timed out
2020-03-23 13:58:26.771 27347-27557/com.xxxxx E/SntpClient: SNTP request failed for 216.239.35.12: java.net.SocketTimeoutException: Poll timed out
2020-03-23 13:58:26.808 27347-27555/com.xxxx V/Ntp: got time data "TimeData [Round Trip Delay: 30; System Clock offset: -2714; Device Uptime offset: 1583156701297]" from 216.239.35.12
2020-03-23 13:58:26.809 27347-27555/com.xxxxx D/Ntp: new median time:TimeData [Round Trip Delay: 30; System Clock offset: -2714; Device Uptime offset: 1583156701297]
2020-03-23 13:58:56.836 27347-27567/com.xxxxx E/SntpClient: SNTP request failed for 159.203.158.197: java.net.SocketTimeoutException: Poll timed out
2020-03-23 13:59:27.003 27347-27573/com.xxxxx E/SntpClient: SNTP request failed for 216.239.35.0: java.net.SocketTimeoutException: Poll timed out
2020-03-23 13:59:57.030 27347-27569/com.xxxxx E/SntpClient: SNTP request failed for 159.203.158.197: java.net.SocketTimeoutException: Poll timed out
2020-03-23 14:00:27.116 27347-27576/com.xxxxx E/SntpClient: SNTP request failed for 198.255.68.106: java.net.SocketTimeoutException: Poll timed out
2020-03-23 14:00:57.178 27347-27572/com.xxxxx E/SntpClient: SNTP request failed for 159.203.158.197: java.net.SocketTimeoutException: Poll timed out
2020-03-23 14:00:57.246 27347-27561/com.xxxxx V/Ntp: got time data "TimeData [Round Trip Delay: 45; System Clock offset: -2712; Device Uptime offset: 1583156701298]" from 216.239.35.4
2020-03-23 14:00:57.248 27347-27561/com.xxxxx D/Ntp: new median time:TimeData [Round Trip Delay: 45; System Clock offset: -2712; Device Uptime offset: 1583156701298]
2020-03-23 14:01:27.399 27347-27582/com.xxxxx E/SntpClient: SNTP request failed for 159.203.158.197: java.net.SocketTimeoutException: Poll timed out
2020-03-23 14:01:27.400 27347-27563/com.xxxxx V/Ntp: got time data "null" from 159.203.158.197
2020-03-23 14:01:57.429 27347-27577/com.xxxxx E/SntpClient: SNTP request failed for 216.239.35.0: java.net.SocketTimeoutException: Poll timed out
2020-03-23 14:01:57.699 27347-27556/com.xxxx V/Ntp: got time data "TimeData [Round Trip Delay: 84; System Clock offset: -2719; Device Uptime offset: 1583156701292]" from 198.255.68.106
2020-03-23 14:01:57.700 27347-27556/com.xxxxx D/Ntp: new median time:TimeData [Round Trip Delay: 30; System Clock offset: -2714; Device Uptime offset: 1583156701297]
2020-03-23 14:01:57.732 27347-27558/com.xxxx V/Ntp: got time data "TimeData [Round Trip Delay: 28; System Clock offset: -2715; Device Uptime offset: 1583156701296]" from 216.239.35.8
2020-03-23 14:02:27.761 27347-27580/com.xxxx E/SntpClient: SNTP request failed for 216.239.35.0: java.net.SocketTimeoutException: Poll timed out
2020-03-23 14:02:27.762 27347-27564/com.xxxx V/Ntp: got time data "TimeData [Round Trip Delay: 34; System Clock offset: -2716; Device Uptime offset: 1583156701295]" from 216.239.35.0
2020-03-23 14:02:27.764 27347-27564/com.xxxx D/Ntp: new median time:TimeData [Round Trip Delay: 28; System Clock offset: -2715; Device Uptime offset: 1583156701296]
I am using an LG v20 with Android 8 and the latest version of MuTime.