Code style fix (no "tab" symbol).
[novacoin.git] / src / ntp.h
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
4 #ifndef NOVACOIN_NTP_H
5 #define NOVACOIN_NTP_H
6
7 // Get time from random server and return server address.
8 int64_t NtpGetTime(CNetAddr& ip);
9
10 // Get time from provided server.
11 int64_t NtpGetTime(const std::string &strHostName);
12
13 extern std::string strTrustedUpstream;
14
15 // NTP time samples thread.
16 void ThreadNtpSamples(void* parg);
17
18 // NTP offset
19 int64_t GetNtpOffset();
20
21 #endif // NOVACOIN_NTP_H