1 // Copyright (c) 2013-2016 The NovaCoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or https://opensource.org/licenses/mit-license.php
7 // Get time from random server and return server address.
8 int64_t NtpGetTime(CNetAddr& ip);
10 // Get time from provided server.
11 int64_t NtpGetTime(const std::string &strHostName);
13 extern std::string strTrustedUpstream;
15 // NTP time samples thread.
16 void ThreadNtpSamples(void* parg);
19 int64_t GetNtpOffset();
21 #endif // NOVACOIN_NTP_H