MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetTimeOffset

Function GetTimeOffset

src/timedata.cpp:27–31  ·  view source on GitHub ↗

* "Never go to sea with two chronometers; take one or three." * Our three time sources are: * - System clock * - Median of other nodes clocks * - The user (asking the user to fix the system clock if the first two disagree) */

Source from the content-addressed store, hash-verified

25 * - The user (asking the user to fix the system clock if the first two disagree)
26 */
27int64_t GetTimeOffset()
28{
29 LOCK(cs_nTimeOffset);
30 return nTimeOffset;
31}
32
33int64_t GetAdjustedTime()
34{

Callers 3

GetAdjustedTimeFunction · 0.85
getinfoFunction · 0.85
getnetworkinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected