Bitcoin ABC 0.26.3
P2P Digital Currency
|
#include <util/time.h>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cstdint>
#include <vector>
Go to the source code of this file.
Classes | |
class | CMedianFilter< T > |
Median filter over a stream of values. More... | |
Functions | |
int64_t | GetTimeOffset () |
Functions to keep track of adjusted P2P time. | |
NodeClock::time_point | GetAdjustedTime () |
void | AddTimeData (const CNetAddr &ip, int64_t nTime) |
void | TestOnlyResetTimeData () |
Reset the internal state of GetTimeOffset(), GetAdjustedTime() and AddTimeData(). | |
Variables | |
static const int64_t | DEFAULT_MAX_TIME_ADJUSTMENT = 70 * 60 |
NodeClock::time_point GetAdjustedTime | ( | ) |
Definition at line 35 of file timedata.cpp.
int64_t GetTimeOffset | ( | ) |
Functions to keep track of adjusted P2P time.
Functions to keep track of adjusted P2P time.
Definition at line 30 of file timedata.cpp.
void TestOnlyResetTimeData | ( | ) |
Reset the internal state of GetTimeOffset(), GetAdjustedTime() and AddTimeData().
Definition at line 127 of file timedata.cpp.
|
static |
Definition at line 16 of file timedata.h.