コード例 #1
0
        public async Task UpdateTimeAsync()
        {
            Ntp.NtpClient client = new Ntp.NtpClient();

            try
            {
                var currentCorrectUtcTime = await client.GetNetworkTimeAsync();

                UpdateOffset(currentCorrectUtcTime);
            }
            catch (Exception ex)
            {
                Log.e(ex);
            }
        }
コード例 #2
0
        public async Task UpdateTimeAsync()
        {
            Ntp.NtpClient client = new Ntp.NtpClient();

            

            try
            {
                var currentCorrectUtcTime = await client.GetNetworkTimeAsync();

                UpdateOffset(currentCorrectUtcTime);
            }
            catch (Exception ex)
            {
                Log.e(ex);
            }
        }