Changeset View
Changeset View
Standalone View
Standalone View
src/timedata.cpp
// Copyright (c) 2014-2016 The Bitcoin Core developers | // Copyright (c) 2014-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include "timedata.h" | #include <timedata.h> | ||||
#include "netaddress.h" | #include <netaddress.h> | ||||
#include "sync.h" | #include <sync.h> | ||||
#include "ui_interface.h" | #include <ui_interface.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include "warnings.h" | #include <warnings.h> | ||||
static CCriticalSection cs_nTimeOffset; | static CCriticalSection cs_nTimeOffset; | ||||
static int64_t nTimeOffset = 0; | static int64_t nTimeOffset = 0; | ||||
/** | /** | ||||
* "Never go to sea with two chronometers; take one or three." | * "Never go to sea with two chronometers; take one or three." | ||||
* Our three time sources are: | * Our three time sources are: | ||||
* - System clock | * - System clock | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |