MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetTimeOffset

Function GetTimeOffset

src/timedata.cpp:29–33  ·  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

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

Callers 3

GetAdjustedTimeFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
getnetworkinfoFunction · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68