Changeset View
Changeset View
Standalone View
Standalone View
src/timedata.cpp
Show All 11 Lines | |||||
#include <sync.h> | #include <sync.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/translation.h> | #include <util/translation.h> | ||||
#include <warnings.h> | #include <warnings.h> | ||||
static RecursiveMutex cs_nTimeOffset; | static RecursiveMutex cs_nTimeOffset; | ||||
static int64_t nTimeOffset = 0; | static int64_t nTimeOffset GUARDED_BY(cs_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 | ||||
* - Median of other nodes clocks | * - Median of other nodes clocks | ||||
* - The user (asking the user to fix the system clock if the first two | * - The user (asking the user to fix the system clock if the first two | ||||
* disagree) | * disagree) | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |